On Apr 13, 2008, at 10:21 , Manlio Perillo wrote:
I'm not yet an Haskell expert, however one of the great feature of WSGI is that the environ is a Python dictionary.
This means that the user can add new keys/values in it.


I'm using this feature, in my WSGI implementation for Nginx (and in a mini framework I'm writing) to store user configuration in the environment, and to cache the result of the parsing of request headers.

I'm not sure if this make sense in Haskell.

Er, that's just a StateT and possibly a ReaderT. I suspect a specific monad stack wrapping IO will end up being part of the interface anyway.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to