在我的存储库中获取此错误,我尝试使用GitHub中的依赖项:
$ stack build
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for quickcheck-fail-0.1.0.0:
ifctx must match -any, but the stack configuration has no specified version
needed since quickcheck-fail is a build target.
Some potential ways to resolve this:
* Set 'allow-newer: true' to ignore all version constraints and build anyway.
* You may also want to try using the 'stack solver' command.
Plan construction failed.
我想出了这里到底出了什么问题。请参阅回购再现:https://github.com/k-bx/quickcheck-fail
答案 0 :(得分:2)
正确答案由@duplode在评论中提供。
这似乎是一个错字:你在package.yaml / .cabal文件中有ifctx而不是ifcxt。 (这是一个简单的拼写错误:我做了同样的事情我最初几次尝试滚动它,甚至所以我花了一段时间在文件中注意到它:)) - duplode 3小时前