I am trying to set an enverionment for Haskell and I installed stack. After the installation I realized the GHC 8.6.4 version is not the one that I need (8.0.2).
compiler-exe: /home/manny/.stack/programs/x86_64-linux/ghc-tinfo6-
8.6.4/bin/ghc
compiler-bin: /home/manny/.stack/programs/x86_64-linux/ghc-tinfo6-
8.6.4/bin
compiler-tools-bin: /home/manny/.stack/compiler-tools/x86_64-linux-
tinfo6/ghc-8.6.4/bin
So I installed the GHC 8.0.2. I know if I change the global-config file I could resolve the problem indication the right compiler that I want but what is the proper command to make such change avoiding editing the configuration files ?
I tried:
stack config set --compiler ghc-8.0.2
without success. My compiler is still 8.6.4.
~/.stack$ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.6.4
Thank you!