On Sat, Nov 22, 2008 at 9:46 AM, Changying Li <[EMAIL PROTECTED]> wrote:
> Hi.
> I read 'write yourself a scheme in 48 hours' and try to modify its code.
> now part of code is :
>
> parseList :: Parser LispVal
> parseList = liftM List $ sepEndBy parseExpr spaces
> <|> do char '('
> skipMany space
> x <- (try parseList) <|> parseDottedList
> char ')'
> return x
parseList is succeeding and returning (1); then "char ')'" is failing
(because the next character in the input is the '.'
-- ryan
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe