<div dir="ltr">Hi,<br><br>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.<br>
<br><a href="http://hackage.haskell.org/package/haste-perch">http://hackage.haskell.org/package/haste-perch</a><br><br>This program, when compiled with haste:<br><br> main= do<br> withElem "idelem" $ build $ do<br>
div $ do<br> div $ do<br> p "hello"<br> p ! atr "style" "color:red" $ "world" <br><br> return ()<br><br>Creates these element:<br><br> <div id= "idelem"> <-- was already in the HTML<br>
<div><br> <div><br> <p> hello </p><br> <p style= "color:red"> world </p><br> </div><br> </div><br> </div><br>
<br><div>Since the creation is in the browser, that permit quite dynamic pages for data</div><div>presentation, and interctive textual (a.k.a "serious") applications and, in general</div><div>the development of client-side web frameworks using haskell with the haste compiler.</div>
<div> </div><br>See the README in the git repository:<br><br><a href="https://github.com/agocorona/haste-perch">https://github.com/agocorona/haste-perch</a><br><br>--<br>Alberto.<br></div>