繁体   English   中英

Cabal 无法安装 ghc-mod

[英]Cabal can't install ghc-mod

我正在尝试在 Atom 中安装 ghc-mod 以与 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 的工作原理,所以如果您需要更多信息,请告诉我! 谢谢你的帮助!

您可能有一个新版本的 base,( https://wiki.haskell.org/Base_package ),其中 ghc-mod 仅与版本兼容 >=4.6.0.1 && <4.10 ( https://hackage.haskell.org/包/ghc-mod )。 你必须降级。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM