potoki-core-1.3: 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 :: (forall x. x -> (input -> x) -> IO x) -> Consume input output -> IO output Source #

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

Fetch all the elements running the provided handler on them

fetch :: Fetch element -> IO (Maybe element) Source #

Fetch just one element