RE: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-12 Thread Dean Herington
At 11:44 PM + 9/10/05, Thomas Spriggs wrote: From: gary ng [EMAIL PROTECTED] fac n = foldr (\x g n - g (x*n)) id [1..n] 1 Would appreciate if someone can knock on my head and tell me what is going on in it. Well, here goes. The way the lambda function/foldr thing evaluates, the

Re: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-12 Thread Sam Mason
gary ng wrote: I want to write apps for WEB and have briefly read WASH. I'm thinking of doing the same. The approach taken by WASH seems very cool and I'd love to use it. I've only started looking at it, but WASH seems to require that JavaScript be enabled on the user's web browser, even for

Re: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-12 Thread S. Alexander Jacobson
I will be launching (beta) a new commercial chat site written using Haskell and AJAX in the next month. The server is written on top of the HAppS library I made available at http://HappS.org. My general pattern for writing an application in this framework is write the server based on a

Re: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-12 Thread Joel Reymont
Why not XML-RPC? On Sep 12, 2005, at 9:54 PM, S. Alexander Jacobson wrote: 6. define how busines logic maps to URLs ... a POST _ [u] = doXML addUser a GET myapp.com (s:path) = fileServe mimeTypes static path myApp appCtx = let ?style=XSL /s/style.xsl in simpleHTTP a appCtx

Re: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-12 Thread S. Alexander Jacobson
On Mon, 12 Sep 2005, Joel Reymont wrote: Why not XML-RPC? REST is more appropriate for the applications on which I work. See http://webservices.xml.com/pub/a/ws/2002/02/20/rest.html -Alex- __ S. Alexander Jacobson tel:917-770-6565

Re: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-12 Thread S. Alexander Jacobson
a better example http://www.intertwingly.net/blog/2005/07/22/REST-vs-API On Mon, 12 Sep 2005, S. Alexander Jacobson wrote: On Mon, 12 Sep 2005, Joel Reymont wrote: Why not XML-RPC? REST is more appropriate for the applications on which I work. See

RE: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-10 Thread Thomas Spriggs
From: gary ng [EMAIL PROTECTED] To: haskell-cafe@haskell.org Subject: [Haskell-cafe] Where to start about writing web/HTTP apps ? Date: Sat, 10 Sep 2005 04:15:45 -0700 (PDT) Hi, Hi, I just start learning haskell and have to say that it is stunning in how precise it can be(coming from a

Re: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-10 Thread Brian McQueen
I emailed the WASH guy the other day and he is currently working on integrating it with a web server. There is talk about Haskell server pages. It sounds quite interesting. I'm impressed with WASH as it is, though. I too am hoping to see it when it moves from a plain CGI model to the something

RE: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-10 Thread gary ng
Ah, lambda, function as first order object and curry. A million thanks, that clears my mind. It is very hard for me to shake away the things that I have learnt for over 20 years. I still think from time to time that the accumulator in foldr/foldl as a constant being folded and forget that it can

Re: [Haskell-cafe] Where to start about writing web/HTTP apps ?

2005-09-10 Thread gary ng
Thanks for the info. Looking forward to see it. What I would like to see is also some form of templating system like HTMLTemplate in Python, that is reading in HTML then merge in data using the DOM model, on the server(may be the XML package in haskell already does it). As for AJAX, I would assume