using stack
latest ghcjs
support to effortlessly compile reflex-todomvc
make sure you have installed stack
>= 0.1.8 https://github.com/commercialhaskell/stack
git clone https://github.com/luigy/try-stack-reflex
cd try-stack-reflex
stack setup
stack build
echo $(stack path --local-install-root)/bin/reflex-todomvc.jsexe/index.html
./try-stack-reflex old
or
STACK_YAML=stack-ghcjs-old-base.yaml
stack setup
stack build
# path to generated index.html to open in you browser
echo $(stack path --local-install-root)/bin/reflex-todomvc.jsexe/index.html
# vanilla ghcjs repo
./try-stack-reflex ghcjsi
# or a fork with ghcjsi support updated ~ 02/01/2016
./try-stack-reflex ghcjsi-fork
export NODE_PATH="$(pwd)/reflex-todomvc/node_modules"
cd reflex-todomvc
stack ghci
# open browser at localhost:6400
requires having ghc
compiler in your PATH
commercialhaskell/stack#1258