Skip to content
Snippets Groups Projects
Commit ec8dac9d authored by sof's avatar sof
Browse files

[project @ 1997-05-18 04:19:21 by sof]

getLine defined in terms of hGetLine
parent a589ac26
No related merge requests found
......@@ -43,10 +43,7 @@ getChar :: IO Char
getChar = hGetChar stdin
getLine :: IO String
getLine = do c <- getChar
if c == '\n' then return "" else
do s <- getLine
return (c:s)
getLine = hGetLine stdin
getContents :: IO String
getContents = hGetContents stdin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment