A barebones template using Haskell miso.
.envrc | ||
.gitignore | ||
cabal.project | ||
flake.lock | ||
flake.nix | ||
Main.hs | ||
README.md | ||
website.cabal |
udon
a barebones template for miso.
hacking
by default, nix build
will compile a WASM-targeting binary. However, the WASM
DOM abstraction (JSaddle) is unusable on Firefox, so efforts are being made to
build with GHCjs instead. This has proved difficult for the Nix package but is
possible in a devshell.
Simply run nix develop
, then
cabal update && cabal build --allow-newer
Then
http-server $(cabal list-bin website --allow-newer).jsexe