|
|
|
|
|
Description |
Random and Binary IO with generic Iteratees.
|
|
Synopsis |
|
|
|
|
File enumerators
|
|
Handle-based 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)
|
|
FileDescriptor based enumerators
|
|
enumFd :: forall s el m a. (ReadableChunk s el, MonadIO m) => Fd -> EnumeratorGM s el m a |
The enumerator of a POSIX File Descriptor. This version enumerates
over the entire contents of a file, in order, unless stopped by
the iteratee. In particular, seeking is not supported.
|
|
enumFdRandom :: forall s el m a. (ReadableChunk s el, MonadIO m) => Fd -> EnumeratorGM s el m a |
The enumerator of a POSIX File Descriptor: a variation of enumFd that
supports RandomIO (seek requests)
|
|
Iteratee drivers
|
|
fileDriver :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a |
Process a file using the given IterateeG. This function wraps
enumFd as a convenience.
|
|
fileDriverRandom :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a |
Process a file using the given IterateeG. This function wraps
enumFdRandom as a convenience.
|
|
Produced by Haddock version 2.7.2 |