
2 Jul
2012
2 Jul
'12
5:24 p.m.
On Mon, Jul 2, 2012 at 1:45 PM, Jeremy Shaw
We can probably work around this by using `runGetState` to get one-chunk at a time and build the lazy `ByteString` that way. That might actually be a lot less hackish than it sounds at first, because it allows us to explicity detect and handle failure cases and control how much and when things are read into RAM. Though, at that point, it starts to feel a bit like enumerators/iteratee/etc. Perhaps we will switch to `pipes` at some point in time. `pipes` provides streaming for pure (non-IO) values -- which is probably what we want here.
Conduit supports pure streams of pure values as well! Just use the Identity monad. =) -- Felipe.