I am trying to use the Pipes library to simulate a workflow. In this workflow, I would like to accumulate all this result from the manufacturer, and then pass it on. In this case, I know that my manufacturer produces the final result.
So, if I have:
prod :: Producer am () accum :: Pipe a [a] mr groupConsumer :: Consumer [a] mr
how do i simulate accum so i can:
runEffect $ prod >-> accum >-> groupConsumer
Thanks!
source share