In my Haskell project when I stack run
, it is showing the following, but still runs. What warning is this? How can I get rid of it?
Stack has not been tested with GHC versions above 8.6, and using 8.8.2, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
In its default configuration, stack determines from the current project which GHC version, architecture etc. it needs. It then looks in ~/.stack/programs/$platform/ghc-$version/ for a compatible GHC, requesting to install one via stack setup if none is found.
Stack can only use a system GHC installation if its version is compatible with the configuration of the current project, particularly the resolver or snapshot setting. GHC installation doesn't work for all operating systems, so in some cases you will need to use system-ghc and install GHC yourself. How does Stack determine what GHC to use?
It checks the two most recent LTS Haskell major versions and the most recent Stackage Nightly for a snapshot that is compatible with all of the version bounds in your .cabal file, favoring the most recent LTS. For more information, see the snapshot auto-detection section in the architecture document.
Because GHC options often only affect optimization levels and warning behavior, stack doesn't recompile when it detects an option change by default. This behavior can be changed though by setting the rebuild-ghc-options option to true. To force recompilation manually, use the --force-dirty flag.
This is just a compatibility warning. The next stack version should be tested with GHC 8.8 and this warning should be gone. Until then there's probably little you can do unless you want to modify the source.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With