[Haskell-cafe] i am missing something really trivial with parsec

Anatoly Yakovenko aeyakovenko at gmail.com
Tue Sep 29 03:54:21 EDT 2009


number = do { num <- natural
            ; return $ num
            }
main = do
   txt <- hGetContents stdin
   print $ parse number "stdin" txt


why doesn't that work?


More information about the Haskell-Cafe mailing list