[Haskell-cafe] Parsec on TeX
dons at galois.com
Mon May 5 00:00:44 EDT 2008
> On 2008 May 4, at 23:40, Ross Boylan wrote:
> >ERROR "grammar.hsl":21 - Type error in explicitly typed binding
> >*** Term : envEnd
> >*** Type : String -> GenParser Char a [Char]
> >*** Does not match : String -> Parser ()
> Hugs is prone to error messages that obscure the problem. The trick
> here is to realize that the type "Parser ()" is the same as "GenParser
> Char a ()"; this then tells you that you have used a function that
> returns a [Char] (aka String) where a type () (Haskell's version of
> (void)) is expected.
Yeah, if you're on Debian it would make sense to install GHC -- its much
more active, much faster, and supports more things.
It's well maintained on Debian too.
More information about the Haskell-Cafe