简体   繁体   中英

EclipseFP doesn't working

I am trying to install EclipseFP on Eclipse version: Mars Release (4.5.0) on Mac OS Yosemite 10.10.5.

While Haskell perspective is appeared, nothing special for Haskell language is not working (Syntax highlight, hoogle search & etc...)

语法高亮 Hoogle搜索

Here is my Eclipse Preferences: Eclipse首选项

And it seems that problem is that not all necessary packages could be compiled (But sure that this is the root cause)

For example, when I am pressing button "Install from Hackage" in the Haskell helper executables it is trying to compile it but fails because of 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

Could somebody please help me?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM