
6 May
2008
6 May
'08
5:46 p.m.
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.