potoki-core-0.12: Low-level components of "potoki"

Safe HaskellNone
LanguageHaskell2010

Potoki.Core.IO

Synopsis

Documentation

produceAndConsume :: Produce input -> Consume input output -> IO output Source #

produceAndTransformAndConsume :: Produce input -> Transform input anotherInput -> Consume anotherInput output -> IO output Source #

produce :: Produce input -> forall x. IO x -> (input -> IO x) -> IO x Source #

consume :: IO (Maybe input) -> Consume input output -> IO output Source #

fetchAndHandleAll :: Fetch element -> IO () -> (element -> IO ()) -> IO () Source #

Fetch all the elements running the provided handler on them

fetchAndHandle :: Fetch element -> IO a -> (element -> IO a) -> IO a Source #

Fetch and handle just one element

transformList :: Transform a b -> [a] -> IO [b] Source #