getLine is:exact package:base set:included-with-ghc

Read a line from the standard input device. getLine is implemented as hGetLine stdin. This operation may fail with the same errors as hGetLine.

Examples

>>> getLine
> Hello World!
"Hello World!"
>>> getLine
>
""