conduit icon indicating copy to clipboard operation
conduit copied to clipboard

example of runStateC

Open flip111 opened this issue 8 years ago • 1 comments

I'm having trouble to work out how runStateC works, i would like a small example of runStateC. Also in combination with multiple conduit functions that have state.

If i have conduit a .| b .| c .| d .| e where b and d have their own inner state, how can i think get all the values from by conduit back together with both state of b and d after the entire conduit has run? Is it still possible to use sourceToList?

flip111 avatar Jun 06 '17 11:06 flip111

The question is pretty vague, but it sounds like your question is really about fusing with upstream results. See these functions: https://www.stackage.org/haddock/lts-8.17/conduit-1.2.10/Data-Conduit.html#g:4. If you're having trouble getting a usage of runStateC to work, please provide the code you're trying.

snoyberg avatar Jun 07 '17 00:06 snoyberg