[Haskell-cafe] Parsec is being weird at me

Andrew Coppin andrewcoppin at btinternet.com
Sat Aug 25 14:41:15 EDT 2007


Anybody want to explain to me why this doesn't work?

   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.6.1, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.
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 "#"



More information about the Haskell-Cafe mailing list