Does this one give the "expected" error message for Parsec3.1 -
unfortunately I can't test as I'm still using Parsec 2.1.0.1.
> parser = block (many digit "digit")
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/lis
I have a question about Parsec. The following program
> import Control.Applicative ((*>),(<*))
> import Text.Parsec
> import Text.Parsec.Char
> block p = char '{' *> p <* char '}'
> parser = block (many digit)
> main = parseTest parser "{123a}"
gives the output
parse error at (line 1, column 5