module Bio.Iteratee.IO(
defaultBufSize,
H.enumHandle,
H.enumHandleRandom,
enumFile,
enumFileRandom,
FD.enumFd,
FD.enumFdRandom,
fileDriver,
fileDriverVBuf,
fileDriverRandom,
fileDriverRandomVBuf,
)
where
import Bio.Iteratee.ReadableChunk
import Bio.Iteratee.Iteratee
import Bio.Iteratee.Binary ()
import Control.Monad.Catch
import Control.Monad.IO.Class
import Prelude
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, NullPoint s, ReadableChunk s el) =>
Int
-> FilePath
-> Enumerator s m a
enumFile = FD.enumFile
enumFileRandom
:: (MonadIO m, MonadMask m, NullPoint s, ReadableChunk s el) =>
Int
-> FilePath
-> Enumerator s m a
enumFileRandom = FD.enumFileRandom
fileDriver
:: (MonadIO m, MonadMask m, NullPoint s, ReadableChunk s el) =>
Iteratee s m a
-> FilePath
-> m a
fileDriver = FD.fileDriverFd defaultBufSize
fileDriverVBuf
:: (MonadIO m, MonadMask m, NullPoint s, ReadableChunk s el) =>
Int
-> Iteratee s m a
-> FilePath
-> m a
fileDriverVBuf = FD.fileDriverFd
fileDriverRandom
:: (MonadIO m, MonadMask m, NullPoint s, ReadableChunk s el) =>
Iteratee s m a
-> FilePath
-> m a
fileDriverRandom = FD.fileDriverRandomFd defaultBufSize
fileDriverRandomVBuf
:: (MonadIO m, MonadMask m, NullPoint s, ReadableChunk s el) =>
Int
-> Iteratee s m a
-> FilePath
-> m a
fileDriverRandomVBuf = FD.fileDriverRandomFd