[Haskell-cafe] Haskell and html input elements
atomb at soe.ucsc.edu
Mon Nov 12 12:13:57 EST 2007
On Nov 12, 2007, at 8:38 AM, PR Stanley wrote:
> back again!
> How easy/hard is it to control a haskell program through a web
It depends on exactly how you want to control it, but at least some
control is fairly easy.
If you simply want to start a batch Haskell program, and see its
output as HTML in a browser, you can use the cgi  or fastcgi 
libraries listed on Hackage.
If you want slightly more interactivity, it would make sense to write
your Haskell program as its own web server (which is actually
surprisingly easy) and have it respond to sequences of requests,
perhaphs storing intermediate state along the way. Giving something
like this a nice GUI on the user side will probably involve writing a
this way is HERA , which is unfortunately not open-source at the
moment, but may be some day. Another potentially useful library is
HAppS , which abstracts out some of the functionality necessary
for web-based applications.
Is this sort of thing along the right track, or were you thinking of
More information about the Haskell-Cafe