This is a template to be used for bootstrapping new haskell projects using nix.
The sample program is a simply "hello world" style scotty application.
To spin up a new dev environment, simply run nix-shell
.
This will set up a new environment with correct versions of ghc
, cabal
, ghcid
, hlint
, brittany
and ghcide
setup.
The test suite can be run using
nix-shell --command "cabal test"
The program can be run (with automatic reloading) using
# Enter into a new nix shell
nix-shell
ghcid -c 'cabal new-repl budget' -T ':main'
TODO
- Create deployment/release process and document (build docker images using nix-build?)
- Create alias for spinning up ghcid and running test suite