-
Notifications
You must be signed in to change notification settings - Fork 12
Description
comparison to Elm architecture
there are a few other FRP around. in particular I had a lot of confusion moving from Elm to Reflex. One difference, possibly is that Reflex, being written in Haskell is monadic. The web page is a side effect of other computations. Although Elm compiler is written in Haskell, Elm is it's own separate language and an architectures. All the HTML , SVG, CSS and other DOM elements have been turned into functions that fit into " the Elm architecture". These are not side effects there are no monads.
Finally while all elements are instances of el
or elAttr
in Reflex, there's some distinction between dynamic and static elements, elements with attributes and elements without. I found it easier to just use element
and lenses and define my own methods.
There's also confusion with ghcjs
which is almost completely separate.
From the teaching point of view, it will be helpful to review monads and the Haskell arrows as they play out specifically in Reflex. These are just my thoughts and I'm writing about it on my own GitHub.