- newtype MIteratee s m a = MIteratee {}
- data IOBuffer r el
- createIOBuffer :: Storable el => Int -> ForeignPtr Int -> ForeignPtr el -> IOBuffer r el
- type MEnumerator s m a = MIteratee s m a -> m (MIteratee s m a)
- type MEnumeratee sFrom sTo m a = MIteratee sTo m a -> MIteratee sFrom m (MIteratee sTo m a)
- joinIob :: (MonadCatchIO m, Storable el) => MIteratee (IOBuffer r el) m (MIteratee (IOBuffer r el') m a) -> MIteratee (IOBuffer r el) m a
- joinIM :: Monad m => m (MIteratee (IOBuffer r el) m a) -> MIteratee (IOBuffer r el) m a
- wrapEnum :: Monad m => Enumerator s m a -> MEnumerator s m a
- liftI :: Monad m => (Stream s -> MIteratee s m a) -> MIteratee s m a
- idone :: Monad m => a -> Stream s -> MIteratee s m a
- icont :: (Stream s -> MIteratee s m a) -> Maybe SomeException -> MIteratee s m a
- guardNull :: (MonadCatchIO m, Storable el) => IOBuffer r el -> MIteratee (IOBuffer r el) m a -> MIteratee (IOBuffer r el) m a -> MIteratee (IOBuffer r el) m a
- head :: (MonadCatchIO m, Storable el) => MIteratee (IOBuffer r el) m el
- heads :: (MonadCatchIO m, Storable el, Eq el) => [el] -> MIteratee (IOBuffer r el) m Int
- peek :: (MonadCatchIO m, Storable el) => MIteratee (IOBuffer r el) m (Maybe el)
- drop :: (MonadCatchIO m, Storable el) => Int -> MIteratee (IOBuffer r el) m ()
- dropWhile :: (MonadCatchIO m, Storable el) => (el -> Bool) -> MIteratee (IOBuffer r el) m ()
- foldl' :: (MonadCatchIO m, Storable el, Show a) => (a -> el -> a) -> a -> MIteratee (IOBuffer r el) m a
- mapStream :: (MonadCatchIO pr, Storable elo, Storable eli) => Int -> (eli -> elo) -> MEnumeratee (IOBuffer r eli) (IOBuffer r elo) pr a
- mapAccum :: (MonadCatchIO pr, Storable eli, Storable elo) => Int -> (b -> eli -> (b, elo)) -> b -> MEnumeratee (IOBuffer r eli) (IOBuffer r elo) pr a
- convStream :: (MonadCatchIO pr, Storable elo, Storable eli) => MIteratee (IOBuffer r eli) pr (IOBuffer r elo) -> MEnumeratee (IOBuffer r eli) (IOBuffer r elo) pr a
- takeUpTo :: (MonadCatchIO pr, Storable el) => Int -> MEnumeratee (IOBuffer r el) (IOBuffer r el) pr a
- enumHandleRandom :: forall r el m a. (MonadCatchIO m, Storable el) => Int -> Handle -> MIteratee (IOBuffer r el) m a -> m (MIteratee (IOBuffer r el) m a)
- fileDriverRandom :: (MonadCatchIO m, Storable el) => Int -> (forall r. MIteratee (IOBuffer r el) m a) -> FilePath -> m a
- newFp :: Storable a => a -> IO (ForeignPtr a)
Documentation
newtype MIteratee s m a Source
Storable el => MonadTrans (MIteratee (IOBuffer s el)) | |
(MonadCatchIO m, Storable el) => Monad (MIteratee (IOBuffer r el) m) | |
(Monad m, Functor m) => Functor (MIteratee s m) | |
(MonadCatchIO m, Storable el) => MonadCatchIO (MIteratee (IOBuffer r el) m) | |
(MonadCatchIO m, Storable el) => MonadIO (MIteratee (IOBuffer r el) m) |
A mutable buffer to hold storable elements. This data type supports memory recycling.
Storable el => MonadTrans (MIteratee (IOBuffer s el)) | |
(MonadCatchIO m, Storable el) => Monad (MIteratee (IOBuffer r el) m) | |
(MonadCatchIO m, Storable el) => MonadCatchIO (MIteratee (IOBuffer r el) m) | |
Storable el => NullPoint (IOBuffer r el) | |
(MonadCatchIO m, Storable el) => MonadIO (MIteratee (IOBuffer r el) m) |
createIOBuffer :: Storable el => Int -> ForeignPtr Int -> ForeignPtr el -> IOBuffer r elSource
Create a buffer from a length and data array.
type MEnumerator s m a = MIteratee s m a -> m (MIteratee s m a)Source
type MEnumeratee sFrom sTo m a = MIteratee sTo m a -> MIteratee sFrom m (MIteratee sTo m a)Source
joinIob :: (MonadCatchIO m, Storable el) => MIteratee (IOBuffer r el) m (MIteratee (IOBuffer r el') m a) -> MIteratee (IOBuffer r el) m aSource
wrapEnum :: Monad m => Enumerator s m a -> MEnumerator s m aSource
guardNull :: (MonadCatchIO m, Storable el) => IOBuffer r el -> MIteratee (IOBuffer r el) m a -> MIteratee (IOBuffer r el) m a -> MIteratee (IOBuffer r el) m aSource
foldl' :: (MonadCatchIO m, Storable el, Show a) => (a -> el -> a) -> a -> MIteratee (IOBuffer r el) m aSource
mapStream :: (MonadCatchIO pr, Storable elo, Storable eli) => Int -> (eli -> elo) -> MEnumeratee (IOBuffer r eli) (IOBuffer r elo) pr aSource
mapAccum :: (MonadCatchIO pr, Storable eli, Storable elo) => Int -> (b -> eli -> (b, elo)) -> b -> MEnumeratee (IOBuffer r eli) (IOBuffer r elo) pr aSource
convStream :: (MonadCatchIO pr, Storable elo, Storable eli) => MIteratee (IOBuffer r eli) pr (IOBuffer r elo) -> MEnumeratee (IOBuffer r eli) (IOBuffer r elo) pr aSource
takeUpTo :: (MonadCatchIO pr, Storable el) => Int -> MEnumeratee (IOBuffer r el) (IOBuffer r el) pr aSource
fileDriverRandom :: (MonadCatchIO m, Storable el) => Int -> (forall r. MIteratee (IOBuffer r el) m a) -> FilePath -> m aSource
newFp :: Storable a => a -> IO (ForeignPtr a)Source