Why is it that when I am trying to redefine the getLine function of
Prelude in
the following way, I get an error message  "Last generator in do {...}
must be
an expression "                                                  

getl   :: IO String
getl    = do c <- getChar
                if c=='\n' then return ""
                           else do cs <- getl
                                   return (c:cs)


Unni 
email: [EMAIL PROTECTED]


Reply via email to