Streamly.Internal.Data.Producer.Type
See Streamly.Internal.Data.Producer for introduction.
Type
A Producer m a b
is a generator of a stream of values of type b
from a
seed of type a
in Monad
m
.
Pre-release
Producers
fromList :: Monad m => Producer m [a] a Source #
Convert a list of pure values to a Stream
Pre-release
Mapping
translate :: Functor m => (a -> c) -> (c -> a) -> Producer m c b -> Producer m a b Source #
Interconvert the producer between two interconvertible input types.
Pre-release
lmap :: (a -> a) -> Producer m a b -> Producer m a b Source #
Map the producer input to another value of the same type.
Pre-release
Nesting
data NestedLoop s1 s2 Source #
State representing a nested loop.