当我运行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生态系统还很陌生,因此,我能获得的任何帮助将不胜感激。谢谢!
似乎您有依赖项冲突,一个软件包所需的版本与您尝试安装的软件包的版本不同。对于新用户来说,这可能很难解决。
如果您是Haskell的新手,并且想开始使用Haskell的集中化软件包归档文件Hackage中的依赖项,我建议使用堆栈(install instructions和basic workflow。stack
是基于[ C0],其中包含兼容的软件包版本的经过整理的列表,应该可以使您更轻松地上手。