On Tue, Sep 29, 2009 at 12:54:21AM -0700, Anatoly Yakovenko wrote:
> number = do { num <- natural
>             ; return $ num
>             }
> main = do
>    txt <- hGetContents stdin
>    print $ parse number "stdin" txt
> 
> 
> why doesn't that work?

Could you be a little more specific?  What are you expecting to
happen, and what happens instead/what error message do you get?

-Brent
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to