
happstack-server [1] already depends on blaze-html, and blaze-html
depends on blaze-builder, so the latter indeed a pretty common
dependency these days.
[1]: http://hackage.haskell.org/package/happstack-server
Cheers,
Jasper
On Mon, Mar 28, 2011 at 11:34 AM, Michael Snoyman
blaze-builder is basically a necessity for any serious web application these days: both Warp and Snap depend on it, and I believe Happstack will in the near future. text is a dependency of blaze-builder, and moreover, WAI is using the text datatypes directly, so it also needs to be there.
case-insensitive is basically there for convenience: it's nice to have a single package providing a datatype everyone can use. I also agree that base-unicode-symbols doesn't really add anything, but I didn't really bother with asking for it to be removed. If it becomes an issue, maybe Bas will consider dropping it as a dependency.
On Mon, Mar 28, 2011 at 11:20 AM, Christian Maeder
wrote: I skimmed through it (I'm still using wai-extra-0.2.4.2)
There's not much code left to comment on. I'll have to get used to the new Response data type, though.
I'm sort of shocked by the many dependencies (already via http-types) on blaze-builder, text, case-insensitive and (really unnecessarily) on base-unicode-symbols.
So I'll rather expect problems in dependent packages than in wai.
Thanks for your work!
Cheers Christian
Am 28.03.2011 09:02, schrieb Michael Snoyman:
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[1]. 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 well.
Michael
[1] https://github.com/snoyberg/wai/blob/master/Network/Wai.hs
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel