Stack has not been tested with GHC & Cabal versions
Asked Answered
N

4

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
Nicki answered 19/2, 2020 at 20:23 Comment(1)
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.Sinuosity
D
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.

Didymous answered 19/2, 2020 at 20:23 Comment(0)
I
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).

Imperious answered 28/2, 2020 at 21:28 Comment(0)
H
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
Homestead answered 10/5, 2020 at 10:52 Comment(0)
F
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>
Fibrous answered 17/6, 2022 at 14:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.