Haskell project setup with haskell.nix
This template was generated using the following steps:
cachix use iohk
Note: you should run the above as trusted user, otherwise you'll need to manually add the entry to trusted-substituters
in /etc/nix/nix.conf
Set up niv
niv init
nix-shell -p cabal-install --command 'cabal init --cabal-version=2.4 --license=MIT -p niv-shell'
Edit the generated .cabal file. Example in niv-shell.cabal.
Haskell.nix relies on git, so you must set up the git repository and commit the .cabal file before nix-shell
will work.
git add .
git commit -m "Add haskell.nix skeleton"
nix-shell
lorri init