Miso Start Template
Copy the files and start hacking your Miso app!
- Install Nix
- If you are using macOS 10.15 or newer, check the specific instructions
- Optionally set up a binary cache:
- Install Cachix:
nix-env -iA cachix -f https://cachix.org/api/v1/install
- Use the Miso cache:
cachix use miso-haskell
- Install Cachix:
nix-build
open ./result/bin/miso-app.jsexe/index.html
nix-shell -A env
cabal build
open `find dist-newstyle/ -name index.html`
The default.nix
file has a couple of lines which indicate the "state of the world" for the build system:
- The version of Miso you are going to use, usually from Git;
- A Hackage snapshot, which can be updated by taking the latest version from
all-cabal-hashes
.
The example also shows how you can re-wire the Hackage information to make some packages use a different version from the latest (servant
in our case), and how to bring a package from a GitHub repository.