[web-devel] Happstack Irregular News Issue #2

Felipe Almeida Lessa felipe.lessa at gmail.com
Mon Jul 2 19:24:15 CEST 2012


On Mon, Jul 2, 2012 at 1:45 PM, Jeremy Shaw <jeremy at n-heptane.com> wrote:
>  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.



More information about the web-devel mailing list