Re: [Haskell-cafe] HTML framework for web-ui

2013-10-01 Thread Christopher Done
Threepenny is now ready for public consumption,  FIW.

On 23 May 2013 08:34, Vlatko Basic vlatko.ba...@gmail.com 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?


 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
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-23 Thread 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


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-23 Thread Heinrich Apfelmus

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


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-22 Thread Heinrich Apfelmus

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


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread MigMit
Doing HTML UI with Happstack was a pleasant experience.

Отправлено с iPhone

21.05.2013, в 12:47, Vlatko Basic vlatko.ba...@gmail.com написал(а):

 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

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Alberto G. Corona
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 vlatko.ba...@gmail.com

 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.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Adrian May
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 vlatko.ba...@gmail.com wrote:

 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

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Tom Ellis
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

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Adrian May
On 21 May 2013 18:24, Tom Ellis tom-lists-haskell-cafe-2...@jaguarpaw.co.uk
 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.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Daniel Trstenjak

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

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Vlatko Basic

  
  
I looked at MFlow a little and it looks promising. 
I'll give it a try.

Thanks Alberto. 


 Original Message 
  Subject: Re: [Haskell-cafe] HTML framework for web-ui
  From: Alberto G. Corona agocor...@gmail.com
  To: vlatko.ba...@gmail.com
  Cc: haskell-cafe Haskell-cafe@haskell.org
  Date: 21.05.2013 11:39



  
  
If you like to create a stand alone application I know that
  happstackwas 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) , thenany of these restful frameworks
  will work well.

In the other side, ifyou application hasdifferent pages
  andneed to manage state in the server, then you may
  considerMFlow . It can make things easier a
  lot.Theapplication flowis codifiedjust 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 vlatko.ba...@gmail.com
  
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
  




-- 
Alberto.
  
  

  


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe