>>>>> "Doug Ransom" <[EMAIL PROTECTED]> (DR) writes:
DR> I would appreciate any help in solving the compilation error below. I copied some
type info from hugs into the bottom of this message.
DR> Type checking.........................................
DR> ERROR "d:/hxslt/XpathLex.hs" (line 113): Type error in explicitly typed binding
DR> *** Term : readQuote
DR> *** Type : String -> Position -> LexerState a -> Maybe (Either Error
XPathToken,([Char],Int,Int),([Char],([Char],Int,Int),a),Maybe c)
DR> *** Does not match : String -> Position -> LexerState a -> (Maybe (Either Error
b),Position,LexerState a,Maybe (Lexer (LexerState a) b))
You put some parenthesis in the wrong place.
You declare the result of readQuote to be of a tuple type:
(
Maybe (Either Error b)
,Position
,LexerState a
,Maybe (Lexer (LexerState a) b)
)
but the function returns a valu of type:
Maybe
(
(Either Error b)
,Position
,LexerState a
,Maybe (Lexer (LexerState a) b)
)
So the ( is after Maybe rather than before.
So either mend the type declaration or the return value, depending on what
you intend.
--
Piet van Oostrum <[EMAIL PROTECTED]>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: [EMAIL PROTECTED]