[Haskell-cafe] CGI module almost useless

Conal Elliott conal at conal.net
Wed Jun 1 16:18:20 EDT 2005

I'd like to hear more about people using Arrows-minus-arr, as I ran into
the same in a project I'm working on for interactive construction of
GUI-wrapped functional values & code.

	- Conal

-----Original Message-----
From: haskell-cafe-bounces at haskell.org
[mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Jeremy Shaw
Sent: Wednesday, June 01, 2005 10:55 AM
To: John Goerzen
Cc: haskell-cafe at haskell.org
Subject: Re: [Haskell-cafe] CGI module almost useless


I have done all of those things in WASH. But, don't let that stop you
from writing something better :) I think some people started a project
to write a CGI interface based on a 'Category' -- where a 'Category'
is like an 'Arrow' without the 'pure/arr' function...

Jeremy Shaw.

At Wed, 1 Jun 2005 17:44:38 +0000 (UTC),
John Goerzen wrote:
> My apologies if this sounds like a bit of a rant; I know people put
> effort into this, but....
> The Network.CGI module in fptools (and GHC) is not very useful.  I
> that it should be removed or re-tooled.  Here are the main problems
> it:
> 1. It does not permit custom generation of output headers.  Thus the
> script cannot do things like set cookies, manage HTTP auth, etc.
> 2. It does not permit generation of anything other than text/html
> documents.  Many CGI scripts are used to manage other types of
> documents.  Notably this makes it incompatible with serving up even
> basic things like stylesheets and JPEGs.
> 3. It does not permit the use of any custom design to serve up HTML,
> forcing *everything* to go through Text.Html.  This makes it
> to do things like serving up HTML files from disk.
> 4. There is documentation in the code, but it is as comments only, and
> doesn't show up in the Haddock-generated GHC library reference.
> be an easy fix)
> 5. It does not appear to support file uploads in any sane fashion
> Is there a better CGI module out there somewhere that I'm missing, or
> should I just set about writing my own?
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list
Haskell-Cafe at haskell.org

More information about the Haskell-Cafe mailing list