Cabal安装HaskellForMaths失败

时间:2015-11-23 08:40:53

标签: haskell cabal cabal-install

我正在尝试使用此readme安装Quipper。 Cabal-install在安装Lattices时失败:

Resolving dependencies...
Configuring HaskellForMaths-0.4.8...
Building HaskellForMaths-0.4.8...
Preprocessing library HaskellForMaths-0.4.8...
[ 1 of 58] Compiling Math.QuantumAlgebra.TensorCategory ( Math/QuantumAlgebra/TensorCategory.hs, dist/build/Math/QuantumAlgebra/TensorCategory.o )
[ 2 of 58] Compiling Math.NumberTheory.Prime ( Math/NumberTheory/Prime.hs, dist/build/Math/NumberTheory/Prime.o )
[ 3 of 58] Compiling Math.Algebras.VectorSpace ( Math/Algebras/VectorSpace.hs, dist/build/Math/Algebras/VectorSpace.o )

Math/Algebras/VectorSpace.hs:9:26:
    Module `Prelude' does not export `(<*)'

Math/Algebras/VectorSpace.hs:9:32:
    Module `Prelude' does not export `(*>)'
cabal: Error: some packages failed to install:
HaskellForMaths-0.4.8 failed during the building phase. The exception was:
ExitFailure 1
Lattices-0.0.2 depends on HaskellForMaths-0.4.8 which failed to install.

我尝试安装HaskellForMaths,但失败并出现同样的错误。

1 个答案:

答案 0 :(得分:1)

问题似乎是您尝试使用不导出*><*的基本软件包版本构建HaskellForMaths,这些可能是在基础版本4.8.0.0中添加的与GHC 7.10.1一起发货。

我建议您升级到最新的GHC(7.10.2)。