potoki-core-0.12: Low-level components of "potoki"
Potoki.Core.Produce
Contents
Synopsis
newtype Produce element Source #
Passive producer of elements with support for early termination and resource management.
Constructors
list :: [input] -> Produce input Source #
transform :: Transform input output -> Produce input -> Produce output Source #
Methods
(>>=) :: Produce a -> (a -> Produce b) -> Produce b #
(>>) :: Produce a -> Produce b -> Produce b #
return :: a -> Produce a #
fail :: String -> Produce a #
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] #
liftIO :: IO a -> Produce a #