Starting a Haskell project in NixOS—Update
A quick update to my earlier post on How I (currently) start a Haskell project in NixOS.
These days I’m using direnv with Nix. The integration is smooth and means I don’t have to remember to activate nix-shells explicitly—the environment just works when I cd into the project directory. My tooling (emacs or my terminal in the main) picks up the right GHC version and dependencies and everything feels much less like yak-shaving than before. I’ve never especially liked stack for reasons I couldn’t articulate if I tried but direnv + cabal works for my modest Haskell usage in such a way that I never feel like the ecosystem is a problem.
A note on typography
It is a great sadness to me that people see em dashes as an indication that content was written by AI. I frequently use them, as above and as I have long before AI was a thing, because they’re typographically correct!