[Haskell] Help : A problem with IO

abdullah abdul Khadir abdullah.ak2002 at gmail.com
Wed Nov 26 11:12:36 EST 2008


Hi,



getMyLine :: IO [Char]
getMyLine =  do
                c <- getChar
                if(c == '\n')
                        then return ""
                        else    cs <- getMyLine
                                return [c]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell/attachments/20081126/c85c1c9b/attachment.htm


More information about the Haskell mailing list