首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cabal无法安装ghc-mod

Cabal无法安装ghc-mod
EN

Stack Overflow用户
提问于 2020-10-16 23:27:55
回答 1查看 207关注 0票数 1

我正在尝试安装ghc-mod以便在Atom中与Atom-Haskell ( ide-haskell包)一起使用,但出于某种原因,我的Cabal不想这样做。

当我输入命令cabal install ghc-mod时,我在我的终端中得到以下错误:

代码语言:javascript
复制
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的工作原理,所以如果你需要更多的信息,请让我知道!谢谢你的帮助!

EN

回答 1

Stack Overflow用户

发布于 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)兼容。你就得降级。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64392105

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档