Data.Iteratee
Description
Provide iteratee-based IO as described in Oleg Kiselyov's paper http:okmij.orgftpHaskellIteratee.
Oleg's original code uses lists to store buffers of data for reading in the iteratee. This package allows the use of arbitrary types through use of the StreamChunk type class. See Data.Iteratee.WrappedByteString for implementation details.
- module Data.Iteratee.Base
- module Data.Iteratee.Binary
- 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
Documentation
module Data.Iteratee.Base
module Data.Iteratee.Binary
fileDriver :: (MonadIO m, ReadableChunk s el) => IterateeG s el m a -> FilePath -> m aSource
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 aSource
Process a file using the given IterateeG. This function wraps enumFdRandom as a convenience.