| Portability | portable |
|---|---|
| Maintainer | jmillikin@gmail.com |
Data.Enumerator.IO
Description
Enumerator-based IO
- enumHandle :: Integer -> Handle -> Enumerator SomeException ByteString IO b
- enumFile :: FilePath -> Enumerator SomeException ByteString IO b
- iterFile :: FilePath -> Iteratee SomeException ByteString IO ()
- iterHandle :: Handle -> Iteratee SomeException ByteString IO ()
Documentation
Arguments
| :: Integer | Buffer size |
| -> Handle | |
| -> Enumerator SomeException ByteString IO b |
enumFile :: FilePath -> Enumerator SomeException ByteString IO bSource
Opens a file path in binary mode, and passes the handle to enumHandle.
The file will be closed when the Iteratee finishes.
iterFile :: FilePath -> Iteratee SomeException ByteString IO ()Source
Opens a file path in binary mode, and passes the handle to iterHandle.
The file will be closed when the Iteratee finishes.
iterHandle :: Handle -> Iteratee SomeException ByteString IO ()Source
Read bytes from a stream and write them to a handle. If an exception
occurs during file IO, enumeration will stop and Error will be
returned.