[Haskell-cafe] branching conduits

2013-01-31 Thread Simon Marechal
Hello, I have found the Conduit abstraction to be very well suited to a set of problems I am facing. I am however wondering how to implement branching conduits, and even conduit pools. I am currently in the process of rewriting parts (the simple parts) of the Logstash tool. There

Re: [Haskell-cafe] branching conduits

2013-01-31 Thread Michael Snoyman
On Thu, Jan 31, 2013 at 11:48 AM, Simon Marechal si...@banquise.net wrote: Hello, I have found the Conduit abstraction to be very well suited to a set of problems I am facing. I am however wondering how to implement branching conduits, and even conduit pools. I am

Re: [Haskell-cafe] branching conduits

2013-01-31 Thread Simon Marechal
On 31/01/2013 13:50, Michael Snoyman wrote: * To simplify, we start off with a call to injectLeftovers. This means that we can entirely ignore the Leftover constructor in the main function. * Since a Sink will never yield values, we can also ignore the HaveOutput constructor. * As soon as

Re: [Haskell-cafe] branching conduits

2013-01-31 Thread Alexander V Vershilov
Hello, Simon. On 31 January 2013 17:24, Simon Marechal si...@banquise.net wrote: On 31/01/2013 13:50, Michael Snoyman wrote: * To simplify, we start off with a call to injectLeftovers. This means that we can entirely ignore the Leftover constructor in the main function. * Since a Sink will