potoki-core-1.3: Low-level components of "potoki"
Potoki.Core.Produce
Synopsis
newtype Produce element Source #
Passive producer of elements with support for early termination.
Automates the management of resources.
Constructors
Instances
Methods
fmap :: (a -> b) -> Produce a -> Produce b #
(<$) :: a -> Produce b -> Produce a #
pure :: a -> Produce a #
(<*>) :: Produce (a -> b) -> Produce a -> Produce b #
liftA2 :: (a -> b -> c) -> Produce a -> Produce b -> Produce c #
(*>) :: Produce a -> Produce b -> Produce b #
(<*) :: Produce a -> Produce b -> Produce a #
empty :: Produce a #
(<|>) :: Produce a -> Produce a -> Produce a #
some :: Produce a -> Produce [a] #
many :: Produce a -> Produce [a] #
list :: [input] -> Produce input Source #