[Haskell-beginners] FW: question

Thomas haskell at phirho.com
Thu Jul 14 18:42:55 CEST 2011


In Appendix B (page 166) there is a "symbol table" translating the 
typeset symbols into valid Haskell syntax.

HTH,
Thomas


On 14.07.2011 15:59, Patrick LeBoutillier wrote:
> IIRC, Roelof uses "Programming in Haskell" as his learning material.
> One thing that I found confusing in that book (and in other books as
> well), is that the authors insist on using LaTeX mathematical symbols
> in Haskell code instead of "valid Haskell syntax". For example, in the
> exact example from the book that Roelof is trying to understand:
>
> [x^2 | x<- [1..5]]
>
> , the caret ('^') is not a caret, it's "an arrow pointing upwards",
> and the ASCII arrow  ("<-") is not an ASCII arrow composed of '<' and
> '-', but instead "a single-character arrow". A table at the end of the
> book (Appendix B) explains the correspondance, but that might not be
> immediately obvious.
>



More information about the Beginners mailing list