iteratee-0.3.5: Iteratee-based I/OContentsIndex
Data.Iteratee.IO.Fd
Contents
File enumerators
FileDescriptor based enumerators
Iteratee drivers
Description
Random and Binary IO with generic Iteratees, using File Descriptors for IO. when available, these are the preferred functions for performing IO as they run in constant space and function properly with sockets, pipes, etc.
Synopsis
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
fileDriverFd :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a
fileDriverRandomFd :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a
File enumerators
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
fileDriverFd :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a
Process a file using the given IterateeGM. This function wraps enumFd as a convenience.
fileDriverRandomFd :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m a
Process a file using the given IterateeGM. This function wraps enumFdRandom as a convenience.
Produced by Haddock version 2.7.2