我正在尝试安装ghc-mod以便在Atom中与Atom-Haskell ( ide-haskell包)一起使用,但出于某种原因,我的Cabal不想这样做。
当我输入命令cabal install ghc-mod时,我在我的终端中得到以下错误:
Resolving dependencies...
cabal.exe: Could not resolve dependencies:
[__0] trying: ghc-mod-5.8.0.0 (user goal)
[__1] trying: syb-0.7.1 (dependency of ghc-mod)
[__2] next goal: base (dependency of ghc-mod)
[__2] rejecting: base-4.14.1.0/installed-4.14.1.0 (conflict: ghc-mod =>
base<4.10 && >=4.6.0.1)
[__2] skipping: base-4.14.0.0, base-4.13.0.0, base-4.12.0.0, base-4.11.1.0,
base-4.11.0.0, base-4.10.1.0, base-4.10.0.0 (has the same characteristics that
caused the previous version to fail: excluded by constraint '<4.10 &&
>=4.6.0.1' from 'ghc-mod')
[__2] rejecting: base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
[__2] fail (backjumping, conflict set: base, ghc-mod)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, ghc-mod, syb我安装了Cabal作为Haskell平台的一部分,所以据我所知,它的配置有点不寻常。我没有%HOME%.cabal文件夹,我不知道这是不是问题的一部分?
我不知道太多关于Cabal或ghc-mod的工作原理,所以如果你需要更多的信息,请让我知道!谢谢你的帮助!
发布于 2020-10-24 03:53:54
您可能有一个新版本的base (https://wiki.haskell.org/Base_package),其中ghc-mod只与版本>=4.6.0.1 && <4.10 (https://hackage.haskell.org/package/ghc-mod)兼容。你就得降级。
https://stackoverflow.com/questions/64392105
复制相似问题