Streamly.Internal.Data.Pipe.Type
Documentation
Constructors
forall s1 s2. Pipe (s1 -> a -> m (Step (PipeState s1 s2) b)) (s2 -> m (Step (PipeState s1 s2) b)) s1 |
Instances
Monad m => Arrow (Pipe m) Source # | |
Defined in Streamly.Internal.Data.Pipe.Type | |
Monad m => Category (Pipe m :: Type -> Type -> Type) Source # | |
Monad m => Applicative (Pipe m a) Source # | |
Defined in Streamly.Internal.Data.Pipe.Type | |
Monad m => Functor (Pipe m a) Source # | |
Monad m => Semigroup (Pipe m a b) Source # | |
Represents a stateful transformation over an input stream of values of
type a
to outputs of type b
in Monad
m
.
zipWith :: Monad m => (a -> b -> c) -> Pipe m i a -> Pipe m i b -> Pipe m i c Source #
The composed pipe distributes the input to both the constituent pipes and zips the output of the two using a supplied zipping function.
Since: 0.7.0