What goes into determining the GHC version when using stack?
I thought this would be the resolver but...
I have the following stack file:
resolver: nightly-2018-07-10
packages:
- .
This is what is on Stackage:
Stackage Nightly 2018-07-10 (ghc-8.4.3)
Published on 2018-07-10
View changes
stack resolver: nightly-2018-07-10
Then I build:
$ stack clean
$ stack build
Building all executables for `PyrethrumPre' once. After a successful build
of all of them, only specified executables will be rebuilt.
PyrethrumPre-0.1.0.0: configure (exe)
Configuring PyrethrumPre-0.1.0.0...
PyrethrumPre-0.1.0.0: build (exe)
Preprocessing executable 'PyrethrumPre' for PyrethrumPre-0.1.0.0..
Building executable 'PyrethrumPre' for PyrethrumPre-0.1.0.0..
[1 of 2] Compiling MTLPlusLens ( src\MTLPlusLens.hs, .stack-work\dist \7d103d30\build\PyrethrumPre\PyrethrumPre-tmp\MTLPlusLens.o )
[2 of 2] Compiling Main ( src\Main.hs, .stack-work\dist\7d103d30\build\PyrethrumPre\PyrethrumPre-tmp\Main.o )
Linking .stack-work\dist\7d103d30\build\PyrethrumPre\PyrethrumPre.exe ...
PyrethrumPre-0.1.0.0: copy/register
Installing executable PyrethrumPre in C:\PyrethrumPre\.stack-work\install\cd327184\bin
At this point I am expecting GHC to be at 8.4.3 as per the resolver:
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.2
Why is the GHC version not as expected?
Thanks