[Haskell-cafe] More help for the newb

Matthew Morvant mmorvant at bigfatreddog.com
Sat Feb 21 11:09:52 EST 2004

Thanks for the catching the typo.  However,  I keep getting type errors.
The error that I get seems self-explanaotry, by telling me what to change
the type to.  But when I change it I get another error that seems to tell me
to change it back.

-----Original Message-----
From: Philippa Cowderoy [mailto:flippa at flippac.org] 
Sent: Saturday, February 21, 2004 10:02 AM
To: Matthew Morvant
Subject: Re: [Haskell-cafe] More help for the newb

On Sat, 21 Feb 2004, Matthew Morvant wrote:

> 36 code3 :: [b] -> [Char]
> 37 code3 = do{char '!'; digit; char 's'; many (do char 's'); return "Suc"}
> +++ do{char '%'; char 's'; digit; many (do digit): return "Suc"}

You appear to have a colon instead of a semicolon, which isn't good.
Consider "many digit" rather than "many (do digit)", too.

flippa at flippac.org

More information about the Haskell-Cafe mailing list