Safe Haskell | None |
---|---|
Language | Haskell2010 |
Since: Cabal-2.2.0
Synopsis
- data IOData
- data IODataMode
- null :: IOData -> Bool
- hGetContents :: Handle -> IODataMode -> IO IOData
- hPutContents :: Handle -> IOData -> IO ()
IOData
& IODataMode
type
Represents either textual or binary data passed via I/O functions which support binary/text mode
Since: Cabal-2.2.0
IODataText String | How Text gets encoded is usually locale-dependent. |
IODataBinary ByteString | Raw binary which gets read/written in binary mode. |
hGetContents :: Handle -> IODataMode -> IO IOData Source #
IOData
Wrapper for hGetContents
Note: This operation uses lazy I/O. Use NFData
to force all
data to be read and consequently the internal file handle to be
closed.
Since: Cabal-2.2.0