安装d3js时出错。我使用的是ghc-7.8.3,cabal-1.22,debian Wheezy。
# cabal install d3js
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: d3js-0.1.0.0 (user goal)
next goal: base (dependency of d3js-0.1.0.0)
rejecting: base-4.7.0.1/installed-1a5... (conflict: d3js => > base>=4.6 && <4.7)
rejecting: base-4.8.0.0, 4.7.0.2, 4.7.0.1, 4.7.0.0, 4.6.0.1, 4.6.0.0, 4.5.1.0,
4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0, 4.2.0.2, 4.2.0.1, 4.2.0.0,
4.1.0.0, 4.0.0.0, 3.0.3.2, 3.0.3.1 (global constraint requires installed instance) Dependency tree exhaustively searched.
答案 0 :(得分:4)
在这种情况下,Cabal的错误信息可能会更好。无论如何,这意味着:
您的选择是:
--allow-newer
标志