[Haskell] ANNOUNCE: haste-perch
Andrew Gibiansky
andrew.gibiansky at gmail.com
Wed Jun 18 16:11:20 UTC 2014
Could you elaborate on how this is better/different from blaze-html?
I'm a bit confused - is it just the same thing but works with Haste, while
blaze-html doesn't? What's the main idea?
Thanks!
Andrew
On Wed, Jun 18, 2014 at 7:02 AM, Alberto G. Corona <agocorona at gmail.com>
wrote:
> Hi,
>
> haste-perch defines builder elements (perchs) for Haste.DOM elements that
> are appendable, so that dynamic HTML can be created in the client in a
> natural way, like textual HTML, but programmatically and with the advantage
> of static type checking. It can be ported to other haskell-js compilers.
>
> http://hackage.haskell.org/package/haste-perch
>
> This program, when compiled with haste:
>
> main= do
> withElem "idelem" $ build $ do
> div $ do
> div $ do
> p "hello"
> p ! atr "style" "color:red" $ "world"
>
> return ()
>
> Creates these element:
>
> <div id= "idelem"> <-- was already in the HTML
> <div>
> <div>
> <p> hello </p>
> <p style= "color:red"> world </p>
> </div>
> </div>
> </div>
>
> Since the creation is in the browser, that permit quite dynamic pages for
> data
> presentation, and interctive textual (a.k.a "serious") applications and,
> in general
> the development of client-side web frameworks using haskell with the haste
> compiler.
>
>
> See the README in the git repository:
>
> https://github.com/agocorona/haste-perch
>
> --
> Alberto.
>
> _______________________________________________
> Haskell mailing list
> Haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell/attachments/20140618/d9a97bd7/attachment.html>
More information about the Haskell
mailing list