I have installed ghcup, then through this the recommended ghc 8.10.7, HLS and now stack 2.7.5.
ghc runs perfectly, but stack always complains: “No compiler found, expected minor version match with ghc-8.6.5 (x86_64) […]” even with --system-ghc
or the equivalant config setting.
The problem, I guess, is that stack wants ghc 8.6.5, but I have the “recommended” 8.10.7.
I would like to avoid multiple ghcs on my system (as long as I can avoid it). Also for now I would like to go only with stack, not cabal-install, if possible.
Therefore, I assume, I need to tell stack through its “resolver” setting, to use ghc v8.10.7 – but how do I do this?
Or does it make more sense to downgrade the system compiler to ghc 8.6.5 (what stack expects by default). When staring out with Haskell, should I definitely stick to ghc 8.10.7, or can 8.6.5 be recommended for learning too?
Thanks for suggestions!