[Haskell-cafe] Functional Reactive Web Application Framework?

Claus Reinke claus.reinke at talk21.com
Wed May 13 07:20:08 EDT 2009

oops, sorry, keyboard accident

> >I assume you want to write FRP in a Haskell-embedded DSL and generate
>>FRP'd JavaScript.  If you wish to use Flapjax as a supporting library
>>I'd be glad to help.
> I'm curious: how difficult is it nowadays for in-page JavaScript to
> control the evolution of its surrouding page, FRP-style? I used to
> do something like that, but with VRML+JavaScript instead of HTML
> +JavaScript (there's a screencast for those without VRML viewer;-):
> http://community.haskell.org/~claus/FunWorlds/VRML/
> and I found that mapping FRP style behaviours and events wasn't
> the problem (though VRML has better support for this than HTML),
> the problem was gaining the same advantages one would have from
> embedding FRP in a functional language. Problems included scoping,
> linking dynamically created material with enclosing scope (JavaScript 
> being in strings with scopes separate from the enclosing VRML, 
> VRML to be created dynamically also via strings, also in their own 
> scope) 

This became particularly obvious for dynamic recursion of reactive
behaviours, somewhat like 

  page n = <code involving n> `until` (keypress `then` (\key-> page n))

How are such things handled in Flapjax, if it follows the embedded
compiler approach? 


More information about the Haskell-Cafe mailing list