pandora-0.1.7: A box of patterns and paradigms

Safe HaskellSafe
LanguageHaskell2010

Pandora.Paradigm.Controlflow.Pipeline

Synopsis

Documentation

type Pipeline i o t a r = Continuation r (Pipe i o r t) a Source #

await :: Pipeline i o t i r Source #

Take incoming value from pipeline

yield :: o -> Pipeline i o t () r Source #

Give a value to the future consuming

finish :: Pointable t => Pipeline i o t () () Source #

Pipeline that does nothing

impact :: Bindable t => t a -> Pipeline i o t a a Source #

Do some effectful computation within pipeline

(=*=) :: forall i e a o t. Pointable t => Pipeline i e t () () -> Pipeline e o t () () -> Pipeline i o t a () Source #

Compose two pipelines into one

pipeline :: Pointable t => Pipeline i o t r r -> t r Source #

Run pipeline and get result