Portability | portable |
---|---|
Stability | stable |
Maintainer | dons@galois.com |
Safe Haskell | Safe-Infered |
The standard IO input functions using strict IO.
Strict Handle IO
hGetContents :: Handle -> IO StringSource
Computation hGetContents
hdl
returns the list of characters
corresponding to the unread portion of the channel or file managed
by hdl
, which is immediate closed.
Items are read strictly from the input Handle.
This operation may fail with:
-
isEOFError
if the end of file has been reached.
Strict String IO wrappers
getContents :: IO StringSource
The getContents
operation returns all user input as a single string,
which is read stirctly (same as hGetContents
stdin
).