
Hi, I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not "classical" web pages)? Or maybe another one? thanks, vlatko

Doing HTML UI with Happstack was a pleasant experience.
Отправлено с iPhone
21.05.2013, в 12:47, Vlatko Basic
Hi,
I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not "classical" web pages)? Or maybe another one?
thanks, vlatko
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

If you like to create a stand alone application I know that happstack was
created for stand-alone applications with no database, although Yesod and
Snap can do it as well. If your application is a-single-page-doit-all by
using a lot of JavaScript (or Fay) , then any of these restful frameworks
will work well.
In the other side, if you application has different pages and need to
manage state in the server, then you may consider MFlow . It can make
things easier a lot. The application flow is codified just like in a
console application. It uses formlets, blaze-html and WAI-warp
http://hackage.haskell.org/package/MFlow
you can find examples here:
http://haskell-web.blogspot.com.es/
2013/5/21 Vlatko Basic
Hi,
I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not "classical" web pages)? Or maybe another one?
thanks, vlatko
______________________________**_________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe
-- Alberto.

I was wondering about this too. I have a database-heavy,
performance-sensitive app in mind. It will serve approximately the same
logic over both a raw UDP socket and an HTML5 app generating its pages on
the fly. I know that sounds odd but some users still have ordinary phones
on cheap data contracts. Interactions between all these people are
initiated by one of them, whereupon I need to haul their data out of the
DB, process it as some kind of state-machine in a thread set up for the
interaction, and then log the gossip to the DB afterwards. I'll probably
use postgres if nothing speaks against it cos it'll be a linux server and
mysql is considered buggier and slower under load.
So I have three questions:
* can I use postgres from Haskell?
* which Haskell framework should I go for?
* how's the performance likely to be if I hit postgres from Haskell instead
of C?
TIA,
Adrian.
On 21 May 2013 16:47, Vlatko Basic
Hi,
I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not "classical" web pages)? Or maybe another one?
thanks, vlatko
______________________________**_________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe

On Tue, May 21, 2013 at 06:18:16PM +0800, Adrian May wrote:
* can I use postgres from Haskell?
I've been successfully using http://hackage.haskell.org/package/postgresql-simple It's fine so far except it throws exceptions willy-nilly. (I find exceptions very un-Haskell but some people seem to like them). Tom

On 21 May 2013 18:24, Tom Ellis wrote: I've been successfully using http://hackage.haskell.org/package/postgresql-simple It's fine so far except it throws exceptions willy-nilly. (I find
exceptions very un-Haskell but some people seem to like them). What's an exception? I thought Haskell used Maybe.
Adrian.

Hi Adrian,
What's an exception? I thought Haskell used Maybe.
Haskell also has exceptions: dan@machine ~> ghci Prelude> head [] *** Exception: Prelude.head: empty list I also consider them as quite problematic, especially if they're used in libraries, but sometimes we're all a bit lazy and the 'error' function comes in handy ... Greetings, Daniel

Vlatko Basic wrote:
I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not "classical" web pages)? Or maybe another one?
Not sure if that's what you are looking for, but with help from Daniel Austin, I'm currently working on a small GUI library that use the web browser to display GUI elements. https://github.com/HeinrichApfelmus/threepenny-gui It's derived from Chris Done's former Ji project. It's not quite ready for public consumption yet, but any feedback is appreciated, of course. Best regards, Heinrich Apfelmus -- http://apfelmus.nfshost.com

Hi Heinrich, Looks simple and interesting. I browsed the git, but not much docs yet. Just examples, or have I looked at wrong places? I see that API is still under heavy design. When do you expect the API might stabilize? (BTW, examples in Readme do not work.) vlatko
Vlatko Basic wrote:
I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not "classical" web pages)? Or maybe another one?
Not sure if that's what you are looking for, but with help from Daniel Austin, I'm currently working on a small GUI library that use the web browser to display GUI elements.
https://github.com/HeinrichApfelmus/threepenny-gui
It's derived from Chris Done's former Ji project.
It's not quite ready for public consumption yet, but any feedback is appreciated, of course.
Best regards, Heinrich Apfelmus
-- http://apfelmus.nfshost.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Vlatko Basic wrote:
Hi Heinrich,
Looks simple and interesting. I browsed the git, but not much docs yet. Just examples, or have I looked at wrong places?
Thanks! Only examples and Haddock documentation so far, though the latter is extensive.
I see that API is still under heavy design. When do you expect the API might stabilize?
The current API probably won't change much until the first release, but I can't guarantee anything beyond that. It involves lots of aesthetic decisions.
(BTW, examples in Readme do not work.)
That would be one of the corners where it's not ready for public consumption yet. ;) Best regards, Heinrich Apfelmus -- http://apfelmus.nfshost.com

Threepenny is now ready for public consumption, FIW.
On 23 May 2013 08:34, Vlatko Basic
Hi Heinrich,
Looks simple and interesting. I browsed the git, but not much docs yet. Just examples, or have I looked at wrong places?
I see that API is still under heavy design. When do you expect the API might stabilize?
(BTW, examples in Readme do not work.)
vlatko
Vlatko Basic wrote:
I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not "classical" web pages)? Or maybe another one?
Not sure if that's what you are looking for, but with help from Daniel Austin, I'm currently working on a small GUI library that use the web browser to display GUI elements.
https://github.com/HeinrichApfelmus/threepenny-gui
It's derived from Chris Done's former Ji project.
It's not quite ready for public consumption yet, but any feedback is appreciated, of course.
Best regards, Heinrich Apfelmus
-- http://apfelmus.nfshost.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (8)
-
Adrian May
-
Alberto G. Corona
-
Christopher Done
-
Daniel Trstenjak
-
Heinrich Apfelmus
-
MigMit
-
Tom Ellis
-
Vlatko Basic