Am Dienstag, 6. Mai 2008 18:52 schrieb Ross Boylan: > > Source: > import Text.ParserCombinators.Parsec > import qualified Text.ParserCombinators.Parsec.Token as P > import Text.ParserCombinators.Parsec.Language(haskell) > reserved = P.reserved haskell > braces = P.braces haskell > > > -- TeX example > > envBegin :: Parser String > envBegin = do{ reserved "\\begin" > 1 ; braces (many1 letter) ^^^^^ > }
Right there appears the '1' that irritated you. Remove it from the source file, and ghc is happy. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe