[Haskell-cafe] Re: RFC: A standardized interface between web servers and applications or frameworks (ala WSGI)

Adam Langley agl at imperialviolet.org
Sun Apr 13 19:06:43 EDT 2008

On Sun, Apr 13, 2008 at 4:59 AM, Johan Tibell <johan.tibell at gmail.com> wrote:
>  * Using a different set of data types would work better.

Give that this is Haskell, I'd suggest more types ;)

HTTP headers aren't just strings and, at the risk of tooting my own
horn, I'll point to the Headers structure in [1]. Likewise, URLs have
lots of structure that should just be handled in one place [2]

[1] http://darcs.imperialviolet.org/darcsweb.cgi?r=network-minihttp;a=headblob;f=/Network/MiniHTTP/Marshal.hs
[2] http://darcs.imperialviolet.org/darcsweb.cgi?r=network-minihttp;a=headblob;f=/Network/MiniHTTP/URL.hs


Adam Langley agl at imperialviolet.org http://www.imperialviolet.org

More information about the Haskell-Cafe mailing list