[Haskell-beginners] functional parser type error