Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stack has not been tested with GHC & Cabal versions

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
like image 872
Muhammadjon Avatar asked Feb 19 '20 20:02

Muhammadjon


People also ask

How does stack know what version of GHC I Need?

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.

Why can't stack install system-GHC?

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?

What version of Stackage does it check?

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.

How do I force Stack to recompile for changes to GHC options?

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.


1 Answers

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.

like image 106
Isaac van Bakel Avatar answered Oct 04 '22 19:10

Isaac van Bakel