我试图安装“Haskell:The Craft of Functional Programming”,第3版。Craft3e:cabal安装不在范围内:应用
我在CentOS版本使用GHCI,版本7.6.3 7
然后:
cabal unpack Craft3e
cd Craft3e-0.1.1.0/
cabal install
...
[29 of 67] Compiling CalcParseLib (Calculator/CalcParseLib.hs, dist/build/CalcParseLib.o)
Calculator/CalcParseLib.hs:132:10:
Not in scope: type constructor or class `Applicative'
Failed to install Craft3e-0.1.1.0
cabal: Error: some packages failed to install:
Craft3e-0.1.1.0 failed during the building phase. The exception was:
ExitFailure 1
我已经尝试此安装多次,但不能 克服这种错误。
我可以使用“cabal install”以外的东西吗?
在我学习这个例子之前,我有很多需要了解Haskell的知识, 但是知道安装是否好! :)
你可以使用更新的GHC(> = 7.10)吗?看起来这个软件包没有使用旧版本进行测试。升级比编辑它更容易编译。 –
是的,升级工程。我更新到ghc 8.0.2。我在交易锁定方面遇到了一些问题,但我刚刚重新启动并清理完毕。 –