How to get GHC 9.4.2 on NixOS?

Thanks for the helpful responses. I’m now at least able to install and use GHC 9.2.4.

Yeah, that is really what I want to do. I’ve never liked combining the system package manager with my development environment because the system package manager always lags behind and has a very limited selection of packages.

Ideally I would have one main ghc version (probably 9.2.4 currently) on my path and a bunch of alternative GHC versions, like ghc-8.10.7, ghc-9.2.4, and ghc-9.4.2 also on my path. Then cabal can automatically choose the one that is appropriate for each of the packages that I’m developing using the with-compiler option.

1 Like