haskell - 无法安装darcsden-1.1(haskel包)

标签 haskell

我尝试安装darcsden-1.1

sudo cabal install darcsden-1.1 

它返回以下内容:

Failed to install hsx-0.10.4
cabal: Error: some packages failed to install:
HJScript-0.6.1 depends on hsx-0.10.4 which failed to install.
darcs-2.8.4 failed during the configure step. The exception was:
ExitFailure 1
darcsden-1.1 depends on hsx-0.10.4 which failed to install.
hsp-0.7.3 depends on hsx-0.10.4 which failed to install.
hsx-0.10.4 failed during the building phase. The exception was:
ExitFailure 1

感谢您的帮助。

最佳答案

仅供引用,最佳实践通常是不要以 root 身份运行 cabal - 不需要 sudo。另外,请将任何错误消息添加到您的问题中,这样更容易看到它们。您写道:

I tried to install drcsden-1.1 on ubuntu 13.04 with GHC 7.6.3 with sudo cabal install darcsden-1.1

cabal install hsx-0.10.4 -v3 , returns a fail message , below a part of the debug message.

src/HSX/Transform.hs:1484:13:
    Constructor `PTuple' should have 2 arguments, but has been given 1
    In the pattern: PTuple ps
    In a case alternative: PTuple ps -> concatMap gatherPVars ps

我在使用 ghc 7.6.3 安装 hsx-0.10.4 时没有看到这个问题。所以我查看了有问题的来源。我看不到 PTuple 来自哪里,所以我在 Hayoo 上搜索它(不是 Hoogle,因为我不知道它来自哪个包。)这表明它是在 haskell-src-exts 中定义的,而且确实已经更新了最近。比较 1.13.5 中的 PTuple 定义和 1.14.0 .

因此,要解决 hsx 问题:将 --constraint haskell-src-exts==1.13.5 添加到 cabal 安装命令中。要修复它,请要求 hsx 维护者更新 hsx 和/或其 haskell-src-exts 依赖项边界。

关于haskell - 无法安装darcsden-1.1(haskel包),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18623640/

相关文章:

haskell - 如何获取真实值遵循伯努利分布的 bool 值列表

haskell - Haskell 中的 Char 算术

opengl - 了解 OpenGL 中的光照

haskell - 单子(monad) m => a -> [a -> m a] -> m a

Haskell 工具重写 import 语句来命名所有导入?

function - 两个相似的函数如何在 Haskell 中具有不同的多态类型?

haskell - 为什么我的文档没有出现在 Hackage 中?

haskell - Singletons TypeRepStar Sing 数据实例

haskell - 如何深入理解SICP中描述的信号流图?

haskell - `foldl`的实际使用