You copy-pasted it without a newline.
This is how it should look http://lpaste.net/90921
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.
> tutorial.hs:21:23: Illegal type signature: `[Person] people' Perhaps you intended to use -XScopedTypeVariables In a pattern type-signature