This repository包含我在测试套件中使用doctest
时遇到的恼人错误的复制品。
cabal-install
解算器无法使用GHC 8.0.2找到此build-depends
字段的解决方案:
build-depends:
base >= 4.7 && < 5
, doctest == 0.11.4
, containers == 0.5.10.2
请注意,doctest
依赖于ghc-8.0.2
,它本身依赖于containers-0.5.7.1
,与我自己的约束相冲突。
这基本上是cabal install
试图告诉我的内容:
Resolving dependencies...
cabal.exe: Could not resolve dependencies:
next goal: containers (dependency of repro-0.1.0.0)
rejecting: containers-0.5.7.1/installed-0.5... (conflict: repro =>
containers==0.5.10.2)
trying: containers-0.5.10.2
next goal: doctest (dependency of repro-0.1.0.0)
rejecting: doctest-0.13.0, doctest-0.12.0 (conflict: repro => doctest==0.11.4)
trying: doctest-0.11.4
next goal: ghc (dependency of doctest-0.11.4)
rejecting: ghc-8.0.2/installed-8.0... (conflict: containers==0.5.10.2, ghc =>
containers==0.5.7.1/installed-0.5...)
Dependency tree exhaustively searched.
现在,让我感到困惑的是stack install
使用lts-9
and an extra-deps
for the containers version工作得很好。
所以理论上,cabal-install
也可以做正确的事情&#39;这里。我怎么能告诉它?