module Bio.Iteratee.IO(
defaultBufSize,
H.enumHandle,
H.enumHandleRandom,
enumFile,
enumFileRandom,
FD.enumFd,
FD.enumFdRandom,
fileDriver,
fileDriverVBuf,
fileDriverRandom,
fileDriverRandomVBuf,
)
where
import Bio.Iteratee.Iteratee
import Bio.Prelude
import Control.Monad.Catch
import Control.Monad.IO.Class
import qualified Bio.Iteratee.IO.Handle as H
import qualified Bio.Iteratee.IO.Fd as FD
defaultBufSize :: Int
defaultBufSize = 2*1024*1024
enumFile
:: (MonadIO m, MonadMask m) =>
Int
-> FilePath
-> Enumerator Bytes m a
enumFile = FD.enumFile
enumFileRandom
:: (MonadIO m, MonadMask m) =>
Int
-> FilePath
-> Enumerator Bytes m a
enumFileRandom = FD.enumFileRandom
fileDriver
:: (MonadIO m, MonadMask m) =>
Iteratee Bytes m a
-> FilePath
-> m a
fileDriver = FD.fileDriverFd defaultBufSize
fileDriverVBuf
:: (MonadIO m, MonadMask m) =>
Int
-> Iteratee Bytes m a
-> FilePath
-> m a
fileDriverVBuf = FD.fileDriverFd
fileDriverRandom
:: (MonadIO m, MonadMask m) =>
Iteratee Bytes m a
-> FilePath
-> m a
fileDriverRandom = FD.fileDriverRandomFd defaultBufSize
fileDriverRandomVBuf
:: (MonadIO m, MonadMask m) =>
Int
-> Iteratee Bytes m a
-> FilePath
-> m a
fileDriverRandomVBuf = FD.fileDriverRandomFd