如何解决Cabal无法安装ghc-mod
我正在尝试安装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的工作方式不甚了解,因此,如果您需要更多信息,请告诉我! 感谢您的帮助!
解决方法
您可能有一个新的base(https://wiki.haskell.org/Base_package)版本,其中ghc-mod仅与> = 4.6.0.1 && https://hackage.haskell.org/package/ghc-mod)版本兼容。您必须降级。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。