15

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
Muhammadjon
  • 1,476
  • 2
  • 14
  • 35
  • 6
    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. – sjakobi Feb 19 '20 at 21:04

4 Answers4

5

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.

Isaac van Bakel
  • 1,772
  • 10
  • 22
3

As the others said, this can be most likely be ignored. If you want to be on the super-safe side, edit your stack.yaml and downgrade the resolver back to 14.x (latest at this point is 14.27).

Mad Wombat
  • 14,490
  • 14
  • 73
  • 109
0

You can specify a resolver when creating a project to get rid of this warning:

stack new hello-world simple --resolver=lts-14.27
Emi
  • 4,597
  • 2
  • 31
  • 34
0

This may cause other warnings you actually care about to be suppressed, but if you run stack --verbosity error or stack --silent you won't see these warnings. For example

stack --verbosity error exec <your program>
ntc2
  • 11,203
  • 7
  • 53
  • 70