
21 Nov
2005
21 Nov
'05
7:02 a.m.
Sara Kenedy wrote:
import qualified ParsecToken as P
the proper hierarchical module name is: Text.ParserCombinators.Parsec.Token
str1 :: Parser String str1 = do {str <- many anyToken; notFollowedBy semi; return str}
simply try: str <- many anyToken; notFollowedBy (char ';'); return str "semi" only skips additional white spaces (that you are not interested in) (I find it easier not to use the Parsec.Token und Parsec.Language wrappers and remain Haskell 98 conform) Christian