Playground to evaluate reflex and reflex-dom and play with different examples.
$ stack setup
$ stack build
Get ready for a long compilation of GHCJS, you also might need additional libraries like happy
and alex
.
$ cp app.css .stack-work/dist/x86_64-linux/Cabal-1.22.4.0_ghcjs/build/reflex-demo/reflex-demo.jsexe/
$ cp index.html .stack-work/dist/x86_64-linux/Cabal-1.22.4.0_ghcjs/build/reflex-demo/reflex-demo.jsexe/
$ firefox .stack-work/dist/x86_64-linux/Cabal-1.22.4.0_ghcjs/build/reflex-demo/reflex-demo.jsexe/index.html
should be like this
- Add Nix deps to remove tedious task of environment configuration