运行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生态系统还很陌生,因此,我所能提供的任何帮助将不胜感激。谢谢!
答案 0 :(得分:1)
您似乎有依赖性冲突,一个软件包所需的版本与您尝试安装的软件包的版本不同。对于新用户来说,这可能很难解决。
如果您是Haskell的新手,并且想开始使用Hackage(Haskell的集中式软件包存档)中的依赖项,建议您使用堆栈(install instructions和basic workflow。{{1} }是建立在stack
之上的工具,其中包含精选的兼容软件包版本列表,应该可以使您更容易上手。