<div class="gmail_quote">On 30 March 2012 11:36, Lennart Kolmodin <span dir="ltr">&lt;<a href="mailto:kolmodin@gmail.com">kolmodin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Before I saw happstack-wai I had a quick look at the happstack API and saw that the Request keeps the request body as a (lazy?) String. I&#39;m curious to the rationale for this, as one could expect a lazy bytestring would be more efficient, and some kind of stream would better support error handling (given that the String is indeed lazy). </blockquote>

</div><br>The rationale is probably that Happstack has been around for years. :)<br><br>Part of the Happstack 8 roadmap is a new HTTP backend, likely using Pipes, possibly with support for SPDY, and including a new Request datatype and quite probably much fewer uses of String.<br>