News for hackers. Stuff that matters.
[deleted]
Re:Conrad Barski's Haskell Tutorial by lelf on Sunday July 14, 2013 @05:03PM (#6042231)
Did you respect indentation?

Tutorial is really failing here with this “just paste this to the bottom”.

Re:Conrad Barski's Haskell Tutorial by chm on Sunday July 14, 2013 @10:32PM (#6043347)
I did respect indentation, and here's what I get as an error:

> tutorial.hs:21:23: Illegal type signature: `[Person] people' Perhaps you intended to use -XScopedTypeVariables In a pattern type-signature

Re:Conrad Barski's Haskell Tutorial by lelf on Monday July 15, 2013 @06:17AM (#6044672)
You copy-pasted it without a newline.

This is how it should look http://lpaste.net/90921

Re:Conrad Barski's Haskell Tutorial by paradoja on Monday July 15, 2013 @04:22AM (#6044310)
I guess you have a little error in your code. Maybe if you copied and pasted there was an error.

For example, if you have

     let people :: [Person] people
instead of

     let people :: [Person]
         people = -- ...
that would give you that error.
Re:Conrad Barski's Haskell Tutorial by paradoja on Sunday July 14, 2013 @05:07PM (#6042246)
It doesn't seem to be outdated. I guess you probably didn't follow correctly the instructions (or maybe they aren't explained well). The extra code given in the second example goes just after the code in the first example, starting with the same indentation. Something like:

    main = do 
      putStr "Hello World! Let's have a picnic! \n"
      people_text <- readFile "people.txt"
      -- ... the rest
Re:Conrad Barski's Haskell Tutorial by frou_dh on Sunday July 14, 2013 @05:17PM (#6042287)
You're right, it was lack of indentation.
Re:Conrad Barski's Haskell Tutorial by sigzero on Sunday July 14, 2013 @05:02PM (#6042226)
Nope. I just did it. Worked fine for me. If you are talking about that very first exercise, you did put it in a file and run it? Right?

I got the expected output no issues.