Network.CGI changes
Frederik Eaton
frederik at a5.repetae.net
Mon Jan 21 07:01:47 EST 2008
Dear Johannes,
Thanks, that works for me.
Bjorn, perhaps it would be easier to put these five lines in a module
(Network.CGI.Compat?) in the new package, rather than having people
maintain and download a separate cgi-compat package? Perhaps the two
other functions in the old CGI interface can be implemented in terms
of the new API as well?
Best wishes,
Frederik
On Mon, Jan 21, 2008 at 09:50:46AM +0100, Johannes Waldmann wrote:
> If you need the old "wrapper" function, then use something like this:
>
> wrapper :: ([(String,String)] -> IO Html) -> IO ()
> wrapper f = runCGI $ do
>
> e <- getInputs
> a <- lift $ f $ e
> output $ renderHtml a
>
> best regards, Johannes Waldmann.
>
--
http://ofb.net/~frederik/
More information about the Glasgow-haskell-users
mailing list