Safe Haskell | None |
---|
ClassyPrelude.Conduit
Contents
- module ClassyPrelude
- stdinLnC :: (MonadIO m, IOData a) => Producer m a
- readLnC :: (MonadIO m, Read a) => Producer m (Vector a)
- fromHandleC :: (MonadIO m, IOData a) => Handle -> Producer m a
- replicateMC :: Monad m => Int -> m a -> Producer m (Vector a)
- stdoutLnC :: (MonadIO m, IOData a) => Consumer a m ()
- printC :: (MonadIO m, Show a) => Consumer (Vector a) m ()
- toHandleC :: (MonadIO m, IOData a) => Handle -> Consumer a m ()
- mapC :: (Functor f, Monad m) => (a -> b) -> Conduit (f a) m (f b)
- omapC :: (MonoFunctor c, Monad m) => (Element c -> Element c) -> Conduit c m c
- mapMC :: (Traversable t, Monad m) => (a -> m b) -> Conduit (t a) m (t b)
- omapMC :: (MonoTraversable c, Monad m) => (Element c -> m (Element c)) -> Conduit c m c
- mapM_C :: (MonoFoldable c, Monad m) => (Element c -> m ()) -> Consumer c m ()
- filterC :: (IsSequence c, Monad m) => (Element c -> Bool) -> Conduit c m c
- filterMC :: (IsSequence c, Monad m) => (Element c -> m Bool) -> Conduit c m c
- takeC :: (IsSequence c, Monad m) => Index c -> Conduit c m c
- takeWhileC :: (IsSequence c, Monad m) => (Element c -> Bool) -> Conduit c m c
- dropC :: (IsSequence c, Monad m) => Index c -> Consumer c m ()
- dropWhileC :: (IsSequence c, Monad m) => (Element c -> Bool) -> Conduit c m c
- concatC :: (Monad m, MonoFoldable c) => Conduit c m (Element c)
- unconcatC :: (Monad m, IsSequence c) => Conduit (Element c) m c
- elemIndicesC :: (MonoFoldable c, Eq (Element c), Monad m) => Element c -> Conduit c m Int
- findIndicesC :: (MonoFoldable c, Monad m) => (Element c -> Bool) -> Conduit c m Int
- chainC :: (MonoFoldable c, Monad m) => (Element c -> m ()) -> Conduit c m c
- readC :: (Monad m, Read (Element c), IsSequence c) => Conduit String m c
- showC :: (Monad m, Show (Element c), MonoFoldable c) => Conduit c m String
- foldC :: (Monad m, MonoFoldable c) => (a -> Element c -> a) -> a -> Consumer c m a
- foldMC :: (Monad m, MonoFoldable c) => (a -> Element c -> m a) -> a -> Consumer c m a
- allC :: (Monad m, MonoFoldable c) => (Element c -> Bool) -> Consumer c m Bool
- anyC :: (Monad m, MonoFoldable c) => (Element c -> Bool) -> Consumer c m Bool
- andC :: (Monad m, MonoFoldable c, Element c ~ Bool) => Consumer c m Bool
- orC :: (Monad m, MonoFoldable c, Element c ~ Bool) => Consumer c m Bool
- elemC :: (Monad m, EqSequence c) => Element c -> Consumer c m Bool
- notElemC :: (Monad m, EqSequence c) => Element c -> Consumer c m Bool
- findC :: (Monad m, IsSequence c) => (Element c -> Bool) -> Consumer c m (Maybe (Element c))
- findIndexC :: (Monad m, IsSequence c) => (Element c -> Bool) -> Consumer c m (Maybe Int)
- headC :: (Monad m, IsSequence c) => Consumer c m (Maybe (Element c))
- peekC :: (Monad m, IsSequence c) => Consumer c m (Maybe (Element c))
- lengthC :: (Monad m, MonoFoldable c) => Consumer c m Int
- nullC :: (Monad m, MonoFoldable c) => Consumer c m Bool
- sumC :: (Monad m, MonoFoldable c, Num (Element c)) => Consumer c m (Element c)
- productC :: (Monad m, MonoFoldable c, Num (Element c)) => Consumer c m (Element c)
- sourceFile :: (MonadResource m, IOData a) => FilePath -> Producer m a
- sourceHandle :: (MonadIO m, IOData a) => Handle -> Producer m a
- sourceIOHandle :: (MonadResource m, IOData a) => IO Handle -> Producer m a
- sinkHandle :: (MonadIO m, IOData a) => Handle -> Consumer a m ()
- sinkIOHandle :: (MonadResource m, IOData a) => IO Handle -> Consumer a m ()
- sinkFile :: (MonadResource m, IOData a) => FilePath -> Consumer a m ()
- lazySource :: (Monad m, LazySequence lazy strict) => lazy -> Producer m strict
- lazySink :: (Monad m, LazySequence lazy strict) => Consumer strict m lazy
- foldLines :: (Monad m, Element c ~ Char, IsSequence c) => (a -> ConduitM c o m a) -> a -> ConduitM c o m a
- module Data.Conduit
- module Data.Conduit.List
Re-export
module ClassyPrelude
mapMC :: (Traversable t, Monad m) => (a -> m b) -> Conduit (t a) m (t b)Source
takeWhileC :: (IsSequence c, Monad m) => (Element c -> Bool) -> Conduit c m cSource
dropWhileC :: (IsSequence c, Monad m) => (Element c -> Bool) -> Conduit c m cSource
elemIndicesC :: (MonoFoldable c, Eq (Element c), Monad m) => Element c -> Conduit c m IntSource
findIndicesC :: (MonoFoldable c, Monad m) => (Element c -> Bool) -> Conduit c m IntSource
findIndexC :: (Monad m, IsSequence c) => (Element c -> Bool) -> Consumer c m (Maybe Int)Source
sourceFile :: (MonadResource m, IOData a) => FilePath -> Producer m aSource
sourceIOHandle :: (MonadResource m, IOData a) => IO Handle -> Producer m aSource
sinkIOHandle :: (MonadResource m, IOData a) => IO Handle -> Consumer a m ()Source
lazySource :: (Monad m, LazySequence lazy strict) => lazy -> Producer m strictSource
lazySink :: (Monad m, LazySequence lazy strict) => Consumer strict m lazySource
foldLines :: (Monad m, Element c ~ Char, IsSequence c) => (a -> ConduitM c o m a) -> a -> ConduitM c o m aSource
module Data.Conduit
module Data.Conduit.List