[Haskell-cafe] Conduit experiment: Is this correct?

Ertugrul Söylemez es at ertes.de
Fri Feb 3 16:52:50 CET 2012

Michael Snoyman <michael at snoyman.com> wrote:

> In this particular case, it will work due to the implementation of
> snk. In general, however, you're correct: you should not use the same
> sink twice.
> I haven't thought about it much yet, but my initial recommendation
> would be to create a new Conduit using SequencedSink, which takes the
> three lines and then switches over to a passthrough conduit. The
> result looks like this:
> [...]

Thanks a lot.  This conduit world is really new to me and feels a bit
more complicated than enumerators, but at least I seem to be getting the
right intuition.


Key-ID: E5DD8D11 "Ertugrul Soeylemez <es at ertes.de>"
FPrint: BD28 3E3F BE63 BADD 4157  9134 D56A 37FA E5DD 8D11
Keysrv: hkp://subkeys.pgp.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120203/362e3ef0/attachment.pgp>

More information about the Haskell-Cafe mailing list