Is step 4 really required ? nix-shell already gives you a sandbox environment.
Also their user manual[0] is really good now.
[0]https://hydra.nixos.org/job/nixpkgs/trunk/manual/latest/down...
Also their user manual[0] is really good now.
[0]https://hydra.nixos.org/job/nixpkgs/trunk/manual/latest/down...
The situation seems to have gotten a bit simpler with newer versions of the nix tools (this is of no fault of the author of this post, the post is more than a year old, their blog has great haskell stuff!).
Anyway, for haskell development you can just:
After step 3, all the required packages, including stuff like GHC, will be installed. You can use cabal however you normally do to build the project: