Haskell - Cabal安装parsec错误

时间:2016-08-07 11:47:11

标签: haskell cabal parsec

我一直在尝试为haskell安装parsec库,但我遇到了很多错误。我是非常新的haskell& cabal,我不太了解日志文件的输出。

日志文件的输出在这里: http://pastebin.com/6hPQN1W4

我尝试安装日志文件说无法找到的软件包,但是在尝试安装软件包时我一直遇到错误。

我重新安装了cabal并且还运行了cabal更新,但这并没有解决问题

任何帮助将不胜感激?

2 个答案:

答案 0 :(得分:1)

我建议使用stack工具及其堆叠基础架构。有关详细信息,请参阅http://haskellstack.org

答案 1 :(得分:0)

您可以尝试在沙箱中安装parsec

$ mkdir asdf
$ cd asdf
$ cabal sandbox init
cabalWriting a default package environment file to
/Users/steshaw/Projects/asdf/cabal.sandbox.config
Creating a new sandbox at /Users/steshaw/Projects/asdf/.cabal-sandbox
$ cabal install parsec
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/steshaw/Projects/steshaw/asdf/.cabal-sandbox
Configuring mtl-2.2.1...
Configuring text-1.2.2.1...
Building text-1.2.2.1...
Building mtl-2.2.1...
Installed mtl-2.2.1
Installed text-1.2.2.1
Configuring parsec-3.1.11...
Building parsec-3.1.11...
Installed parsec-3.1.11