[Haskell-cafe] Haskell and html input elements
prstanley at ntlworld.com
Thu Nov 15 07:27:13 EST 2007
What i have in mind is an interactive Haskell app which allows the
user to enter text, push buttons, select radio buttons and so on. As
I have already done a lot of xhtml coding I thought it might be
easier to operate the program entirely via a web browser. However,
I'm also interested in the idea of a straightahead MS Windows GUI for
my program but dont' really know where to start.
Any advice would be most appreciated.
At 17:13 12/11/2007, you wrote:
>On Nov 12, 2007, at 8:38 AM, PR Stanley wrote:
>>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
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ cgi-3001.1.5.1
> http://haskell.org/haskellwiki/ Haskell_Equational_Reasoning_Assistant
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ HAppS-0.8.4
More information about the Haskell-Cafe