Data.Iteratee.IO

| iteratee-0.3.5: Iteratee-based I/O | Contents | Index
Data.Iteratee.IO
Contents
File enumerators Handle-based enumerators FileDescriptor based enumerators Iteratee drivers
Description
Random and Binary IO with generic Iteratees.
Synopsis
enumHandle :: forall s el m a. (ReadableChunk s el, MonadIO m) => Handle -> EnumeratorGM s el m a
enumHandleRandom :: forall s el m a. (ReadableChunk s el, MonadIO m) => Handle -> EnumeratorGM s el m a
enumFd :: forall s el m a. (ReadableChunk s el, MonadIO m) => Fd -> EnumeratorGM s el m a
enumFdRandom :: forall s el m a. (ReadableChunk s el, MonadIO m) => Fd -> EnumeratorGM s el m a
fileDriver :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a
fileDriverRandom :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a
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