
Hi everyone, as probably most people I find the GUI part of any application to be the hardest part. It just occurred to me that I *could* write my wxHaskell desktop application as a web app too. When the app starts, a haskell web server start listening on localhost port 8080 for example and I fire up a browser to page localhost:8080 without the user actually knowing too much about it. Is that a totally stupid idea? Which haskell web servers would make good candidates? Are there any *continuation* based web server in haskell, something similar to Smalltalk's Seaside? Is Hyena continuation-based? Günther

2010/1/10 Günther Schmidt
Hi everyone,
as probably most people I find the GUI part of any application to be the hardest part.
It just occurred to me that I *could* write my wxHaskell desktop application as a web app too.
When the app starts, a haskell web server start listening on localhost port 8080 for example and I fire up a browser to page localhost:8080 without the user actually knowing too much about it.
Is that a totally stupid idea? Which haskell web servers would make good candidates?
No; Happstack. See Gitit for an example - it is a wiki, but people use it locally all the time, such as myself or Don Stewart. -- gwern

Günther Schmidt wrote:
as probably most people I find the GUI part of any application to be the hardest part.
It just occurred to me that I *could* write my wxHaskell desktop application as a web app too.
When the app starts, a haskell web server start listening on localhost port 8080 for example and I fire up a browser to page localhost:8080 without the user actually knowing too much about it.
Is that a totally stupid idea?
No, this is not (necessarily) a stupid idea. In fact it might be a good idea in a lot of cases. A downside is, that you lose the functionality for user access control provided by the OS on multi-user machines (i.e., other users working on the same machine can connect to localhost:8080 too). This might or might not be a concern for you. Regards, Jochem -- Jochem Berndsen | jochem@functor.nl | jochem@牛在田里.com

+++ Günther Schmidt [Jan 10 10 19:38 ]:
Hi everyone,
as probably most people I find the GUI part of any application to be the hardest part.
It just occurred to me that I *could* write my wxHaskell desktop application as a web app too.
When the app starts, a haskell web server start listening on localhost port 8080 for example and I fire up a browser to page localhost:8080 without the user actually knowing too much about it.
Is that a totally stupid idea? Which haskell web servers would make good candidates? Are there any *continuation* based web server in haskell, something similar to Smalltalk's Seaside?
Happstack is not continuation based, but Chris Eidhof shows how to use Happstack with continuations here: http://gist.github.com/260052 And Chris Smith has built a package: http://bifunctor.homelinux.net/~roel/cgi-bin/hackage-scripts/package/happsta... John

I wrote a package to turn Hack applications into standalone apps using
Webkit. The code is available at
http://github.com/snoyberg/hack-handler-webkit. However, it's currently
Linux-only. However, if I was going to write a desktop app based on an HTML
GUI, I would bundle Webkit like this. It fixes such annoyances as "I closed
the window but the program is still running."
Michael
2010/1/10 Günther Schmidt
Hi everyone,
as probably most people I find the GUI part of any application to be the hardest part.
It just occurred to me that I *could* write my wxHaskell desktop application as a web app too.
When the app starts, a haskell web server start listening on localhost port 8080 for example and I fire up a browser to page localhost:8080 without the user actually knowing too much about it.
Is that a totally stupid idea? Which haskell web servers would make good candidates? Are there any *continuation* based web server in haskell, something similar to Smalltalk's Seaside? Is Hyena continuation-based?
Günther
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

hledger does this, using happstack (or in theory, any hack back end). http://joyful.com/repos/hledger/Commands/Web.hs might give some ideas.

Thank you guys for all your responses. I just came accross something called HTML-Dialogs. It's mentioned in the ANNOUNCE files of the 0.26 source package of HaskellDirect. Apparently it takes about (on Windows) using HTML to create GUIs and scripting the Internet Explorer via COM. That would eliminate the need to use a webserver. Does anyone here know more about it, I tried to google it, but guess how much comes up when the only keywords you have is "Internet Explorer HTML Dialogs". Günther

2010/1/15 Günther Schmidt
Thank you guys for all your responses.
I just came accross something called HTML-Dialogs. It's mentioned in the ANNOUNCE files of the 0.26 source package of HaskellDirect. Apparently it takes about (on Windows) using HTML to create GUIs and scripting the Internet Explorer via COM.
That would eliminate the need to use a webserver.
Does anyone here know more about it, I tried to google it, but guess how much comes up when the only keywords you have is "Internet Explorer HTML Dialogs".
Sounds like "Client-side web scripting with HaskellScript" - Erik Meijier, Daan Leijen and James Hook from PADL'99 http://research.microsoft.com/en-us/um/people/emeijer/publications/client-si... http://www.haskell.org/haskellscript/ Best wishes Stephen
participants (7)
-
Gwern Branwen
-
Günther Schmidt
-
Jochem Berndsen
-
John MacFarlane
-
Michael Snoyman
-
Simon Michael
-
Stephen Tetley