When I execute the command cabal run MyProject
in a nix shell, the first line that gets printed is
Build profile: -w ghc-8.10.4.20210212 -O1
Where does the ghc version come from? It is set nowhere in MyProject.cabal or in cabal.project.
I would like to run the command with the newest version of ghc. How can I achieve this?