EclipseFP无法正常工作

时间:2015-09-03 15:54:12

标签: eclipse haskell functional-programming eclipse-fp

我正在尝试在Eclipse版本上安装EclipseFP:Mac OS Yosemite 10.10.5上的Mars Release(4.5.0)。

虽然出现了Haskell透视图,但Haskell语言没有什么特别之处(语法突出显示,hoogle搜索&等等)

Syntax highlight Hoogle Search

这是我的Eclipse首选项: Eclipse preferences

似乎问题是并非所有必需的软件包都可以编译(但确定这是根本原因)

例如,当我按下按钮"从Hackage"在Haskell帮助器可执行文件中,它正在尝试编译它,但由于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

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:1)

由于EclipseFP和BuildWrapper经常发生变化,他们已经停止支持这两个项目并且应该使用一些Leskah也有一个IDE http://jpmoresmau.blogspot.com.tr/2015/05/eclipsefp-end-of-life-from-me-at-least.html