我在运行 Eclipse 3.7.2 和 ghc(i) 7.4.1 的 Ubuntu 12.04 机器上安装了 EclipseFP,即 Eclipse 的 Haskell 插件。每次我启动 Eclipse 时,EclipseFP 都会要求我安装辅助可执行文件 scion-browser (0.2.12) 和 buildrunner (0.7.2),但最终都无法安装。
在命令行上尝试cabal install scion-browser
(或)失败cabal install haskeline
Resolving dependencies...
cabal: Error: some packages failed to install:
haskeline-0.7.1.2 failed during the configure step. The exception was:
user error (The package requires Cabal library version -any && >=1.16 but no
suitable version is installed.)
而cabal install buildwrapper
失败
Resolving dependencies...
Configuring buildwrapper-0.7.7...
Building buildwrapper-0.7.7...
Preprocessing library buildwrapper-0.7.7...
[1 of 7] Compiling Language.Haskell.BuildWrapper.Base ( src/Language/Haskell/BuildWrapper/Base.hs, dist/build/Language/Haskell/BuildWrapper/Base.o )
[2 of 7] Compiling Language.Haskell.BuildWrapper.GHCStorage ( src/Language/Haskell/BuildWrapper/GHCStorage.hs, dist/build/Language/Haskell/BuildWrapper/GHCStorage.o )
src/Language/Haskell/BuildWrapper/GHCStorage.hs:542:22:
Couldn't match expected type `scientific-0.2.0.1:Data.Scientific.Scientific'
with actual type `Number'
In the pattern: I l
In the pattern: Number (I l)
In the pattern: Just (Number (I l))
cabal: Error: some packages failed to install:
buildwrapper-0.7.7 failed during the building phase. The exception was:
ExitFailure 1
任何帮助将不胜感激,因为我似乎无法在任何一个错误上找到任何谷歌点击。
编辑:
重新安装 Haskell 后(似乎我containers
安装了两个版本,runhaskell Setup.hs configure --user
抱怨得当),我现在可以配置BuildWrapper
,但构建它失败并出现以下错误:
[3 of 7] Compiling Language.Haskell.BuildWrapper.GHC ( src/Language/Haskell/BuildWrapper/GHC.hs, dist/build/Language/Haskell/BuildWrapper/GHC.o )
src/Language/Haskell/BuildWrapper/GHC.hs:522:37:
The function `showPpr' is applied to two arguments,
but its type `a0 -> String' has only one
In the second argument of `(++)', namely `showPpr dflags bname'
In the expression: "show " ++ showPpr dflags bname
In an equation for `exprS': exprS = "show " ++ showPpr dflags bname