simple-conduit-0.5.1: A simple streaming I/O library based on monadic folds

Safe HaskellNone

Conduit.Simple.Compat

Synopsis

Documentation

($=) :: a -> (a -> b) -> bSource

Compose a Source and a Conduit into a new Source. Note that this is just flipped function application, so ($) can be used to achieve the same thing.

(=$) :: (a -> b) -> (b -> c) -> a -> cSource

Compose a Conduit and a Sink into a new Sink. Note that this is just function composition, so (.) can be used to achieve the same thing.

(=$=) :: (a -> b) -> (b -> c) -> a -> cSource

Compose two Conduit. This is also just function composition.

($$) :: a -> (a -> b) -> bSource

Compose a Source and a Sink and compute the result. Note that this is just flipped function application, so ($) can be used to achieve the same thing.

sequenceSources :: (Traversable f, Monad m) => f (Source m a) -> Source m (f a)Source

Sequence a collection of sources.

>>> sinkList $ sequenceSources [yieldOne 1, yieldOne 2, yieldOne 3]
[[1,2,3]]