3 ms·
`brew install haskell-platform` should help.
by mietek 13y ago
`brew install haskell-platform` should help.
- deleted 13y ago[deleted]
- sigzero 13y agoNope. 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.
- lelf 13y agoDid you respect indentation? Tutorial is really failing here with this “just paste this to the bottom”.
- chm 13y agoI 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
- paradoja 13y agoI 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.
- lelf 13y agoYou copy-pasted it without a newline. This is how it should look http://lpaste.net/90921 http://lpaste.net/90921
- paradoja 13y agoIt 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
- frou_dh 13y agoYou're right, it was lack of indentation.