警告:此处有新的Haskell用户
我正在尝试在Haskell Platform 2014.2.0.0上为Mac OS X Maverick(64位)安装Hoogle的CLI版本。我已经安装了cabal 1.21.0.0和ghcjs支持以及ghc 7.8.3。
以下是运行$cabal install hoogle
[25 of 75] Compiling Web.Page ( src/Web/Page.hs, dist/build/hoogle/hoogle-tmp/Web/Page.o )
[26 of 75] Compiling Recipe.Haddock ( src/Recipe/Haddock.hs, dist/build/hoogle/hoogle-tmp/Recipe/Haddock.o )
[27 of 75] Compiling Recipe.Cabal ( src/Recipe/Cabal.hs, dist/build/hoogle/hoogle-tmp/Recipe/Cabal.o )
src/Recipe/Cabal.hs:33:74:
Couldn't match expected type ‘CompilerId’
with actual type ‘Maybe CompilerId -> CompilerId’
Probable cause: ‘comp’ is applied to too few arguments
In the fourth argument of ‘finalizePackageDescription’, namely
‘comp’
In the expression:
finalizePackageDescription [] (const True) plat comp [] pkg
cabal: Error: some packages failed to install:
hoogle-4.2.34 failed during the building phase. The exception was:
ExitFailure 1
答案 0 :(得分:3)
我已经提出了一个问题:https://github.com/ndmitchell/hoogle/issues/84。我正在尝试整理拉动请求来修复它。
编辑没关系,这不是Hoogle中的错误。你和我都有一个实验性的Cabal安装了一个突破性的变化。目前还没有办法调整Hoogle。如果您要安装,只需使用cabal install hoogle --constraint 'Cabal < 1.21'
。