[Haskell-cafe] JavaScript in a browser as a Windows GUI?

Henning Thielemann schlepptop at henning-thielemann.de
Mon Oct 25 13:01:52 EDT 2010

Andrew Coppin schrieb:

> I'd like to have a go at writing CGI in Haskell. However, I don't really
> want to install and configure the likes of Apache just to quickly test a
> simple CGI script. I was hoping that I could find a trivial little HTTP
> server on Hackage somewhere that would be just a simple binary that I
> can execute and feed CGI binaries to. But alas, the closest thing I can
> find is
> http://hackage.haskell.org/package/hws
> Alas, this does not work on Windows since it depends on the "unix"
> package. (In fact, almost every network-related package on Hackage
> depends on "unix", for reasons beyond my powers of comprehension...)
> (I also looked at non-Haskell lightweight web servers, but they all
> unanimously don't support CGI at all, or only support CGI _scripts_, but
> arbitrary executables...)

In MoHWS there is code for running Haskell code as CGI code via
hs-plugins. I think it must be updated to GHC-API in order to be still
usable. However, I do not really understand what kind of CGI do you want
or do not want.

More information about the Haskell-Cafe mailing list