6

今天早上我尝试安装几个模块来让 Eclipse FP 工作,但 scion-browser 和 buildwrapper 失败了。

[root@localhost ghc-mod]# cabal install scion-browser
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: scion-browser-0.3.0

[root@localhost ghc-mod]# cabal install buildwrapper
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: buildwrapper-0.8.0

我短暂地继续#haskell IRC,但无法得到答案,但我并没有在 IRC 中徘徊太久。然后我放弃了 EclipseFP 并用 vim 走上了快乐的道路。我以前用过 vim 其他语言,我想我会没事的,即使我可能没有调试器。但是出于好奇,我安装了一些插件来增强我在 haskell 中的编码体验,但是其中一个插件需要 ghc-mod,所以我想我会cabal install再试一次。我最终出现以下错误。

[root@localhost ghc-mod]# cabal install ghc-mod
Resolving dependencies...
Configuring ghc-mod-0.3.0...
Building ghc-mod-0.3.0...
Preprocessing executable 'ghc-mod' for ghc-mod-0.3.0...
[1 of 6] Compiling Param            ( Param.hs, dist/build/ghc-mod/ghc-mod-tmp/Param.o )
[2 of 6] Compiling Lang             ( Lang.hs, dist/build/ghc-mod/ghc-mod-tmp/Lang.o )
[3 of 6] Compiling List             ( List.hs, dist/build/ghc-mod/ghc-mod-tmp/List.o )
[4 of 6] Compiling Check            ( Check.hs, dist/build/ghc-mod/ghc-mod-tmp/Check.o )
[5 of 6] Compiling Browse           ( Browse.hs, dist/build/ghc-mod/ghc-mod-tmp/Browse.o )

Browse.hs:41:72:
    Not in scope: data constructor `ExplicitForall'
    Perhaps you meant `ExplicitForAll' (imported from Language.Haskell.Exts.Extension)
Failed to install ghc-mod-0.3.0
cabal: Error: some packages failed to install:
ghc-mod-0.3.0 failed during the building phase. The exception was:
ExitFailure 1

我尝试克隆项目然后运行cabal install,最终得到以下结果。

[root@localhost ghc-mod]# cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: ghc-mod-4.1.0

我真的很想深入了解这个问题。我不知道 cabal 到底在哪里失败了,所以很难找出它到底在抱怨什么依赖。顺便说一下,以下是 cabal 和 ghc 的版本。

[root@localhost ghc-mod]# cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library 

[root@localhost ghc-mod]# 
[root@localhost ghc-mod]# ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3

谁能帮我理解来自阴谋集团的错误信息?我对haskell比较陌生,如果我错过了一个微不足道的问题,我深表歉意。

4

0 回答 0