[Haskell-cafe] Conduits and large ConduitResult chunks

Nathan Howell nathan.d.howell at gmail.com
Thu Mar 1 22:50:47 CET 2012


I'm porting lzma-enumerator over to conduits and I've run into a snag.
The output chunks from lzma can be quite large, so I'd like to stream
the results out in smaller chunks instead of tens (or hundreds) of
megabytes at a time. It seems as though this should be possible, as it
is with enumeratees, but I can't see how. Is there a way to get this
working without unsafeInterleaveIO?

https://github.com/alphaHeavy/lzma-conduit/blob/2b1451f5596b2db5a23df9a0fb128c7444e112b2/src/Data/Conduit/Lzma.hs#L165

thanks,
-n



More information about the Haskell-Cafe mailing list