Just run stack build
- You must somehow install ghcjs (tested with ghcjs-8.6.0.1_ghc-8.6.2). I did it via nix
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
nix-channel --update
nix-env -f channel:nixos-19.03 -iA haskell.compiler.ghcjs
- Run
stack build --stack-yaml "stack-ghcjs.yaml"
and wait until it will be stucked while trying to download and build dependencies, you can see it if it stucks at 0 / ?? for a some time, then you need to interrupt it (just press cmd / ctrl + c). We need to do this only to generate necessary files because stack can't build using latest ghcjs
PS. Recently stack generates .cabal file and just stops so it's possible that you don't need to interrupt it yourself
- Run
cabal new-build all --project=cabal-ghcjs.project
to actually download dependencies and build it to html and js files