A miso example
First time:
In tab 1:
nix-shell -A shells.ghcIn tab 2:
nix-shell -A shells.ghcjsIn tab 1:
cabal new-build allIn tab 2:
cabal --project-file=cabal-ghcjs.project --builddir=dist-ghcjs new-build allln -s dist-newstyle/build/<path-to-server-binary> miso-examplemkdir -p staticln -s ../dist-ghcjs/build/<path-to-client-javascript> static/all.js
Every subseqeuent time (do not close the tabs):
In tab 1:
cabal new-build allIn tab 2:
cabal --project-file=cabal-ghcjs.project --builddir=dist-ghcjs new-build all
nix-buildln -s result/ghc/server/bin/server miso-examplemkdir -p staticln -s ../result/ghcjs/client/bin/client.jsexe/all.js static/all.js
./miso-example <PORT>Open
localhost:<PORT>in web browser