当我运行cabal install http-conduit时,我得到以下结果:
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: base-4.12.0.0/installed-4.1... (user goal)
[__1] trying: ghc-8.6.5/installed-8.6... (user goal)
[__2] next goal: process (user goal)
[__2] rejecting: process-1.6.7.0 (constraint from user target requires
==1.6.6.0)
[__2] rejecting: process-1.6.6.0 (conflict: ghc =>
process==1.6.5.0/installed-1.6...)
[__2] rejecting: process-1.6.5.1, process-1.6.5.0/installed-1.6...,
process-1.6.5.0, process-1.6.4.0, process-1.6.3.0, process-1.6.2.0,
process-1.6.1.0, process-1.6.0.0, process-1.5.0.0, process-1.4.3.0,
process-1.4.2.0, process-1.4.1.0, process-1.4.0.0, process-1.3.0.0,
process-1.2.3.0, process-1.2.2.0, process-1.2.1.0, process-1.2.0.0,
process-1.1.0.2, process-1.1.0.1, process-1.1.0.0, process-1.0.1.5,
process-1.0.1.4, process-1.0.1.3, process-1.0.1.2, process-1.0.1.1,
process-1.0.0.0 (constraint from user target requires ==1.6.6.0)
[__2] fail (backjumping, conflict set: ghc, process)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: process, base, ghc我运行的是cabal v3.0.0.0和ghc v8.6.5
我对Haskell生态系统还很陌生,所以如果能得到任何帮助,我都会非常感激。谢谢!
发布于 2019-11-21 16:41:53
看起来您有一个依赖冲突,一个包需要一个与您试图安装的包不同的版本。对于新用户来说,这可能很难解决。
如果您是Haskell的新手,并且想要开始使用Hackage的依赖项,我建议您使用stack (install instructions和basic workflow。stack是一个构建在cabal之上的工具,它包含一个经过策划的兼容包版本列表。这应该会让你更容易入门。
https://stackoverflow.com/questions/58946088
复制相似问题