On Thu, Feb 28, 2013 at 9:18 PM, Joey Adams <joeyadams3.14...@gmail.com>wrote:

> Can I transform a conduit so some values are passed through unchanged, but
> others go through the conduit?  For example:
>
>     right :: Conduit i m o -> Conduit (Either x i) m (Either x o)
>

Actually, I didn't need this after all.  I'm using Automaton from the
arrows package for the first part of my pipeline.  Only the zlib
compression step is a Conduit, so I can just use arrow functions to lift
Flush to the rest.

Nonetheless, someone else might want to do this.  Now that I think of it,
not all of the arrow operations make sense (in particular, (***)), but
splitting data between conduits (like ArrowChoice (+++)) does make sense, I
think.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to