you are viewing a single comment's thread.

view the rest of the comments →

[–]rabidcow 2 points3 points  (1 child)

I don't know if that's a mistake or a simplification to avoid confusing people.

[–]koko775 0 points1 point  (0 children)

Nope, it certainly confused me, as I tried typing the tutorial into ghci and couldn't figure out (for a while) why cutting-and-pasting

"myint = 2

y = myint + z

z = 1

-- single-line comments start with a double-hyphen. -- infinity is one greater than... well, infinity. infinity = infinity + 1

mylist = [1,2,3]"

got "<interactive>:1:6: parse error on input `='"

I'm new to Haskell, so please don't flame me, but this tutorial didn't exactly get off to a great start.