iteratee-0.2.4: Iteratee-based I/OSource codeContentsIndex
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 a s el. ReadableChunk s el => Handle -> EnumeratorGM s el IO a
enumHandleRandom :: forall a s el. ReadableChunk s el => Handle -> EnumeratorGM s el IO a
enumFd :: forall a s el. ReadableChunk s el => Fd -> EnumeratorGM s el IO a
enumFdRandom :: forall a s el. ReadableChunk s el => Fd -> EnumeratorGM s el IO a
fileDriver :: ReadableChunk s el => IterateeG s el IO a -> FilePath -> IO a
fileDriverRandom :: ReadableChunk s el => IterateeG s el IO a -> FilePath -> IO a
File enumerators
Handle-based enumerators
enumHandle :: forall a s el. ReadableChunk s el => Handle -> EnumeratorGM s el IO aSource
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 a s el. ReadableChunk s el => Handle -> EnumeratorGM s el IO aSource
The enumerator of a Handle: a variation of enumHandle that supports RandomIO (seek requests)
FileDescriptor based enumerators
enumFd :: forall a s el. ReadableChunk s el => Fd -> EnumeratorGM s el IO aSource
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 a s el. ReadableChunk s el => Fd -> EnumeratorGM s el IO aSource
The enumerator of a POSIX File Descriptor: a variation of enumFd that supports RandomIO (seek requests)
Iteratee drivers
fileDriver :: ReadableChunk s el => IterateeG s el IO a -> FilePath -> IO aSource
Process a file using the given IterateeG. This function wraps enumFd as a convenience.
fileDriverRandom :: ReadableChunk s el => IterateeG s el IO a -> FilePath -> IO aSource
Process a file using the given IterateeG. This function wraps enumFdRandom as a convenience.
Produced by Haddock version 2.6.0