[Haskell-cafe] Web application from the ground up

2008-10-09 Thread Arnaud Bailly
Hello, I am trying to implement a complete web application from the ground up, with the objective to convince myself and others that 1) it is possible, 2) it is powerful and 3) it is more expressive to do such a thing in Haskell. I managed to get to the point where I can handle users lifecycle wit

Re: [Haskell-cafe] Web application from the ground up

2008-10-09 Thread Marc Weber
Hi Arnaud Bailly, Share the world? *g* is a bit vague.. Fast CGI differs from CGI in one point: your application keeps running. Thus as long as the application is running you can use IORefs (bad for multithreading) MVars (thread safe) STM etc to keep track of your "world" state and of course you

Re: [Haskell-cafe] Web application from the ground up

2008-10-09 Thread Thomas Hartman
There's also newer material at http://happstutorial.com:5002 that's in darcs but hasn't been packaged for hackage. 2008/10/9 Thomas Hartman <[EMAIL PROTECTED]>: > Have you seen happstutorial.com? > > thomas. > > > 2008/10/9 Arnaud Bailly <[EMAIL PROTECTED]>: >> Hello, >> I am trying to implement

Re: [Haskell-cafe] Web application from the ground up

2008-10-09 Thread Anton Tayanovskyy
Hi Arnaud, Here's a simple counter program. I mount this to /ws/ with mod_scgi, and can then do requests http://localhost/ws/ or http://localhost/ws/?amount=19 (increment by 19 not 1). http://hpaste.org/11033 I'm no expert but I'm also working on web applications in Haskell now. If you are lik

Re: [Haskell-cafe] Web application from the ground up

2008-10-09 Thread Thomas Hartman
Have you seen happstutorial.com? thomas. 2008/10/9 Arnaud Bailly <[EMAIL PROTECTED]>: > Hello, > I am trying to implement a complete web application from the ground > up, with the objective to convince myself and others that 1) it is > possible, 2) it is powerful and 3) it is more expressive to