Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- enumFd :: (MonadIO m, MonadMask m) => Int -> Fd -> Enumerator Bytes m a
- enumFdCatch :: (IException e, MonadIO m, MonadMask m) => Int -> Fd -> (e -> m (Maybe EnumException)) -> Enumerator Bytes m a
- enumFdRandom :: (MonadIO m, MonadMask m) => Int -> Fd -> Enumerator Bytes m a
- enumFile :: (MonadIO m, MonadMask m) => Int -> FilePath -> Enumerator Bytes m a
- enumFileRandom :: (MonadIO m, MonadMask m) => Int -> FilePath -> Enumerator Bytes m a
- fileDriverFd :: (MonadIO m, MonadMask m) => Int -> Iteratee Bytes m a -> FilePath -> m a
- fileDriverRandomFd :: (MonadIO m, MonadMask m) => Int -> Iteratee Bytes m a -> FilePath -> m a
File enumerators
FileDescriptor based enumerators for monadic iteratees
enumFd :: (MonadIO m, MonadMask m) => Int -> Fd -> Enumerator Bytes m a Source #
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.
enumFdCatch :: (IException e, MonadIO m, MonadMask m) => Int -> Fd -> (e -> m (Maybe EnumException)) -> Enumerator Bytes m a Source #
A variant of enumFd that catches exceptions raised by the Iteratee
.
enumFdRandom :: (MonadIO m, MonadMask m) => Int -> Fd -> Enumerator Bytes m a Source #
The enumerator of a POSIX File Descriptor: a variation of enumFd
that
supports RandomIO (seek requests).