|
|
|
|
|
Description |
Random and Binary IO with generic Iteratees. These functions use Handles
for IO operations, and are provided for compatibility. When available,
the File Descriptor based functions are preferred as these wastefully
allocate memory rather than running in constant space.
|
|
Synopsis |
|
|
|
|
File enumerators
|
|
enumHandle :: forall s el m a. (ReadableChunk s el, MonadIO m) => Handle -> EnumeratorGM s el m a |
The enumerator of a file Handle. This version enumerates
over the entire contents of a file, in order, unless stopped by
the iteratee. In particular, seeking is not supported.
|
|
enumHandleRandom :: forall s el m a. (ReadableChunk s el, MonadIO m) => Handle -> EnumeratorGM s el m a |
The enumerator of a Handle: a variation of enumHandle that
supports RandomIO (seek requests)
|
|
Iteratee drivers
|
|
fileDriverHandle :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a |
Process a file using the given IterateeGM. This function wraps
enumHandle as a convenience.
|
|
fileDriverRandomHandle :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a |
Process a file using the given IterateeGM. This function wraps
enumHandleRandom as a convenience.
|
|
Produced by Haddock version 2.7.2 |