[Haskell-cafe] Re: CGI module almost useless

Ferenc Wagner wferi at tba.elte.hu
Thu Jun 2 03:37:59 EDT 2005

John Goerzen <jgoerzen at complete.org> writes:

> On Wed, Jun 01, 2005 at 10:54:54AM -0700, Jeremy Shaw wrote:
>> I have done all of those things in WASH. [...]
> From what I can tell, there are two problems with WASH:
> 1) Everything must be done the WASH way
> 2) WASH is mostly broken with GHC 6.4
> Let me elaborate a bit on #1.
> Let's say I have a CGI interface pre-defined; I take certain parameters
> from a GET request and do certain things, generating certain headers no
> the result.
> WASH is all centered around generating its own forms, naming its own
> fields, passing around its own state.  It's not at all clear how to
> handle this myself, as I would with Perl or PHP.

Well, you can use htell instead of ask and handle input
with something like FormData.  You can hardly use type safe
callbacks in a pre-defined interface anyway.

> I think that the GHC 6.4 brokenness is fixable, but it makes me nervous
> that upstream has said nothing about it to date.

Yes, I also mailed upstream and got no response.  But I'm
using WASH under GHC 6.4 without any problems.  Automatic
preprocessor invocation is not supported in 6.4, but that
style of coding didn't really work out for me anyway.
Best wishes,

More information about the Haskell-Cafe mailing list