[Haskell-cafe] Enumeratee that generates data
tsuraan at gmail.com
Sun Sep 4 19:09:07 CEST 2011
> For this specific problem I recommend using a forkIO'd
> Iteratee/Enumerator pair with a Chan to shuttle data between them, I
> think it's probably the best way of doing it.
Googling for "enumerator chan" gives me this gist (written by you in
April): https://gist.github.com/932384 . Is that what you're
thinking? Have each socket's read and write tied to a chan enumerator
or iterator as appropriate, and steer the data around as desired? My
actual problem involved multiple upstream server and merging the data
from all of them, so I think, assuming I'm understanding you
correctly, that this would make a lot of sense.
More information about the Haskell-Cafe