Eclipse 日食不发生';行不通

Eclipse 日食不发生';行不通,eclipse,haskell,functional-programming,eclipse-fp,Eclipse,Haskell,Functional Programming,Eclipse Fp,我正试图在Mac OS Yosemite 10.10.5上的Eclipse版本:Mars发行版(4.5.0)上安装EclipseFP 虽然出现了Haskell透视图,但Haskell语言的任何特殊功能都不起作用(语法高亮显示、hoogle搜索等等) 以下是我的Eclipse首选项: 问题似乎是,并不是所有必要的包都可以编译(但确定这是根本原因) 例如,当我在Haskell helper可执行文件中按下“从Hackage安装”按钮时,它正试图编译它,但由于ghc-pkg-lib-0.3,它失

我正试图在Mac OS Yosemite 10.10.5上的Eclipse版本:Mars发行版(4.5.0)上安装EclipseFP

虽然出现了Haskell透视图,但Haskell语言的任何特殊功能都不起作用(语法高亮显示、hoogle搜索等等)

以下是我的Eclipse首选项:

问题似乎是,并不是所有必要的包都可以编译(但确定这是根本原因)

例如,当我在Haskell helper可执行文件中按下“从Hackage安装”按钮时,它正试图编译它,但由于
ghc-pkg-lib-0.3
,它失败了:

Resolving dependencies...
Notice: installing into a sandbox located at
/Applications/Eclipse.app/Contents/MacOS/.eclipsefp/sandbox
Configuring ghc-pkg-lib-0.3...
Building ghc-pkg-lib-0.3...
Failed to install ghc-pkg-lib-0.3
Build log ( /Applications/Eclipse.app/Contents/MacOS/.eclipsefp/sandbox/logs/ghc-pkg-lib-0.3.log ):
Configuring ghc-pkg-lib-0.3...
Building ghc-pkg-lib-0.3...
Preprocessing library ghc-pkg-lib-0.3...
[1 of 1] Compiling Language.Haskell.Packages ( src/Language/Haskell/Packages.hs, dist/dist-sandbox-b2e886dd/build/Language/Haskell/Packages.o )

src/Language/Haskell/Packages.hs:170:13:
    Couldn't match type ‘[Char]’
                   with ‘Distribution.ModuleName.ModuleName’
    Expected type: InstalledPackageInfo_
                     Distribution.ModuleName.ModuleName
      Actual type: InstalledPackageInfoString
    In the expression: pkgconf
    In the expression:
      pkgconf {exposedModules = convert e, hiddenModules = convert h}

src/Language/Haskell/Packages.hs:170:47:
    Couldn't match type ‘ExposedModule’ with ‘[Char]’
    Expected type: [String]
      Actual type: [ExposedModule]
    In the first argument of ‘convert’, namely ‘e’
    In the ‘exposedModules’ field of a record

src/Language/Haskell/Packages.hs:171:39:
    Couldn't match type ‘ExposedModule’
                   with ‘Distribution.ModuleName.ModuleName’
    Expected type: [Distribution.ModuleName.ModuleName]
      Actual type: [ExposedModule]
    In the ‘hiddenModules’ field of a record
    In the expression:
      pkgconf {exposedModules = convert e, hiddenModules = convert h}
cabal.real: Error: some packages failed to install:
buildwrapper-0.9.1 depends on ghc-pkg-lib-0.3 which failed to install.
ghc-pkg-lib-0.3 failed during the building phase. The exception was:
ExitFailure 1

有人能帮我一下吗?

因为EclipseFP和BuildWrapper经常发生变化,他们已经停止支持这两个项目,应该使用一些Leskah和IDE

这不是你想要的,但你试过leksah吗?这是一个原生的Haskell IDE。
ghc pkg lib
似乎没有为其依赖项指定上限,而且您正在获得一个更新版本的
Cabal
,它无法成功构建。考虑添加一个显式约束,如代码> Cabar在GITHUB上找到了PACKAG.HS的更新版本,并成功地构建了这个模块,但是在下一个模块中被破坏了…在github上还发现EclipseFP不再维护…是的,我安装了Leksah,但似乎它的功能更少…作为以前的EclipseFP用户,我现在切换到emacs,它可能对haskell有最好的支持,目前有各种插件可以自动完成,给出类型提示等。。