liqula / react-hs

A GHCJS binding to React based on the Flux design. The flux design pushes state and complicated logic out of the view, allowing the rendering functions and event handlers to be pure Haskell functions.
32 stars 10 forks source link

Make redux example #54

Closed tysonzero closed 7 years ago

tysonzero commented 7 years ago

Just to give you a basic idea of the redux / lens style approach I am playing around with.

No CSS or anything right now and not very pretty but the structure is clean and what I am more focused on demonstrating.

You can see in Base.hs the current instance Eq (a -> b) hack I have to implement that I am hoping won't be necessary for much longer.

Later on I can perhaps find a small but functional and non trivial app to implement this way to replace this example.