[Haskell-cafe] stuck with a sample of "programming in haskell"
Jochem Berndsen
jochem at functor.nl
Fri Mar 19 06:27:54 EDT 2010
国平张 wrote:
> Sorry :-). I am using Hugs, anything I did wrong ?
> ------------------------------------------------------------------------------------------------
> item :: Parser Char
> item = Parser (\inp -> case inp of
^^^ the second "Parser" should be a P, which is a data constructor.
Cheers, Jochem
--
Jochem Berndsen | jochem at functor.nl
More information about the Haskell-Cafe
mailing list