Andrew Coppin wrote:
Prelude> :m Text.ParserCombinators.Parsec
Prelude Text.ParserCombinators.Parsec> parseTest (endBy anyToken (char
'#')) "abc#"
Loading package parsec-2.0 ... linking ... done.
parse error at (line 1, column 1):
unexpected "b"
expecting "#"
I read the doc and determined that it is perfectly correct behaviour.
Hint: anyToken becomes anyChar because your input is [Char].
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe