chunked-data-0.1.0.1: Typeclasses for dealing with various chunked data representations

Safe HaskellNone

Data.IOData

Synopsis

Documentation

class IsSequence a => IOData a whereSource

Data which can be read to and from files and handles.

Note that, for lazy sequences, these operations may perform lazy I/O.

Methods

readFile :: MonadIO m => FilePath -> m aSource

writeFile :: MonadIO m => FilePath -> a -> m ()Source

getLine :: MonadIO m => m aSource

hGetContents :: MonadIO m => Handle -> m aSource

hGetLine :: MonadIO m => Handle -> m aSource

hPut :: MonadIO m => Handle -> a -> m ()Source

hPutStrLn :: MonadIO m => Handle -> a -> m ()Source

hGetChunk :: MonadIO m => Handle -> m aSource