I have a stack yaml with resolver lts-9.9 which is associated with ghc 8.0.2 (see https://www.stackage.org/lts-9.9 but when I run stack solver I see:
Using resolver: lts-9.9
Using compiler: ghc-8.0.1
and not ghc-8.0.2. This seems to violate that a stack build is constrained to exactly one set of packages and ghc? What do I overlook?
This can happen if
ghc-8.0.1is a system-based installed version ofghc, andstackis configured to use it instead of its own sandboxed version.There is a pretty comprehensive page describing all the cases - https://docs.haskellstack.org/en/stable/faq/