Hi Conor, As someone pointed out, CGI is one way to go. Another option is to write a small Haskell web server. This path is better if you have an app that needs to keep state, ans uses the browser mostly as a GUI. I have just made a package that should make doing this fairly easy. I have not uploaded it to hackage yet because I want to make some small changes still. You can try out the "pre-release" from here (the usual cabal steps should work for making a package/installing) git clone git://code.galois.com/http-server.git For an example, take a look in the "example" directory, there is a small web-server there, which shows how to all kinds of things, including ajax interactions with javascript using jQuery. For processing form data there is the module: Network.HTTP.Server.HtmlForm. Let me know if you have questions, comments, or other feed-back! -Iavor On Fri, Jun 5, 2009 at 8:18 AM, Conor McBride<conor@strictlypositive.org> wrote:
Comrades
I'm in a perplexing situation and I'd like to appeal to the sages.
I've never written anything other than static HTML in my life, and I'd like to make a wee web service: I've heard some abbreviations, but I don't really know what they mean.
I've got a function (possibly the identity, possibly const "", who knows?)
assistant :: String -> String
and I want to make a webpage with an edit box and a submit button. If I press the submit button with the edit box containing string s, I'd like the page to reload with the edit box reset to (assistant s).
Will I need to ask systems support to let me install some haskelly sort of web server? Looks likely, I suppose.
In general, what's an easy way to put a web front end on functionality implemented in Haskell?
Hoping this isn't a hard question
Conor
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe