Am Dienstag, 6. Mai 2008 18:52 schrieb Ross Boylan:
>
> g.hs:11:19:
> Couldn't match expected type `t1 -> GenParser Char () t'
>against inferred type `CharParser st ()'
> In the expression: reserved "\\begin" 1
> In a 'do' expression: reserved "\\begin" 1
> In the expres
On Tue, 2008-05-06 at 19:46 +0200, Daniel Fischer wrote:
> 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)
> > reserv
On Tue, 2008-05-06 at 09:52 -0700, Ross Boylan wrote:
> I kept getting parse failures when I ran my little Parsec TeX snippet on
> a sample code. Seeing that ghc6.8 had debugging, I upgraded to it, only
> to discover that I can't even get the code to compile.
>
> $ ghci
> GHCi, version 6.8.2: htt
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 exampl
I kept getting parse failures when I ran my little Parsec TeX snippet on
a sample code. Seeing that ghc6.8 had debugging, I upgraded to it, only
to discover that I can't even get the code to compile.
$ ghci
GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help
Loading package base ... lin