
25 Aug
2007
25 Aug
'07
3:02 p.m.
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].