[web-devel] Last call for comments: WAI 0.4
michael at snoyman.com
Mon Mar 28 11:36:43 CEST 2011
It probably won't have any affect on Yesod. However, the next version
of Yesod is making some parallel changes, namely switching over to the
Text datatype whenever possible. It should help out performance a bit
(less marshaling data around, using packed representation, etc). But
I'm mostly doing it for consistency.
For the record: I'm hoping to make a Yesod 0.8 release fairly soon,
and I don't anticipate that very much 0.7 code will break with the new
release. Getting WAI 0.4 out the door is the first step in this
On Mon, Mar 28, 2011 at 11:27 AM, Anton Cheshkov <acheshkov at gmail.com> wrote:
> I have a question: how WAI 0.4 will affect on yesod API ?
> 2011/3/28 Michael Snoyman <michael at snoyman.com>
>> Hi all,
>> Just wanted to give everyone a last chance to give input on WAI 0.4
>> before its release. You can see the code on Github. The main things
>> to point out in this release are:
>> * We've switched to using http-types, so WAI needs to define much less
>> on its own (i.e., statuses, HTTP versions, etc). Additionally, we now
>> rely on the case-insensitive library for header keys.
>> * The Request datatype now contains parsed pathInfo and queryString.
>> This makes it more efficient to write middlewares. The raw path info
>> and query string are still available as rawPathInfo and
>> rawQueryString, respectively.
>> * Partial file responses are now supported. The ResponseFile
>> constructor takes a fourth argument, Maybe FilePart. FilePart contains
>> the offset and count.
>> If anyone has other ideas that they'd like to see implemented in WAI,
>> please get them in sooner, rather than later. I'm hoping that this
>> release will last for quite a while. We'll also be releasing a number
>> of associated packages at the same time (wai-extra, warp, wai-test,
>> etc), so if you have comments on those, feel free to submit them as
>>  https://github.com/snoyberg/wai/blob/master/Network/Wai.hs
>> web-devel mailing list
>> web-devel at haskell.org
> Best regards,
> Cheshkov Anton
> Phone: +7 909 005 18 82
> Skype: cheshkov_anton
> web-devel mailing list
> web-devel at haskell.org
More information about the web-devel