|
definition: |
getLine :: IO String
getLine = do c <- getChar
case c of
'\n' -> return []
_ -> do cs <- getLine
return (c : cs)
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
| An action that reads a line from standard input and returns it. |
|
failfree: |
() |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{() |-> _}
|
|
name: |
getLine |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
IO [Char] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |