danidiaz / streamy

Using Backpack to abstract over the main Haskell streaming libraries.
MIT License
34 stars 1 forks source link

Pipes/Streaming splitting with Conduit? #3

Open danidiaz opened 7 years ago

danidiaz commented 7 years ago

In pipes and streaming, splitting functions stash the second part of a stream in the return value of the first part. For example:

splitAt :: Monad m => Index -> Stream a m r -> Stream a m (Stream a m r)

I don't know how to do the same with conduit, but perhaps there is way.