我想cabal install gtk2hs-buildtools
但是我收到一个“ParseResult.hs”文件中的错误。我不知道这是否是一个错误或本地错误。
我已经确保了RC文件已正确更新有export PATH=$HOME/.cabal/bin:$PATH
(大空间是从格式化)
cabal install gtk2hs-buildtools
Resolving dependencies...
Configuring Cabal-2.4.1.0...
Failed to install Cabal-2.4.1.0
Build log ( /home/cuffaro/.cabal/logs/Cabal-2.4.1.0.log ):
cabal: Error: some packages failed to install:
Cabal-2.4.1.0 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:
/tmp/cabal-tmp-6517/Cabal- 2.4.1.0/Distribution/Parsec/ParseResult.hs:32:0:
error: missing binary operator before token "("
#if MIN_VERSION_base(4,10,0)
^
/tmp/cabal-tmp-6517/Cabal- 2.4.1.0/Distribution/Parsec/ParseResult.hs:88:0:
error: missing binary operator before token "("
#if MIN_VERSION_base(4,10,0)
^
)
gtk2hs-buildtools-0.13.4.0 depends on Cabal-2.4.1.0 which failed to install.
我的决议是更新到18.04。现在没有任何问题。