`cabal-install`拒绝解决冲突的`ghc`和`containers`版本

时间:2017-11-17 15:09:51

标签: haskell haskell-stack cabal-install conflicting-libraries

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;这里。我怎么能告诉它?

0 个答案:

没有答案