无法使用cabal

时间:2015-09-19 08:13:36

标签: haskell module cabal hsdev

我在Arch上,我尝试使用cabal(hsdev)安装cabal install hsdev,但是当它开始编译并编译HsDev.Tools.GhcMod时我得到以下信息:

[46 of 58] Compiling HsDev.Tools.GhcMod ( src/HsDev/Tools/GhcMod.hs, dist/build/HsDev/Tools/GhcMod.o )

src/HsDev/Tools/GhcMod.hs:64:54:
    ‘GhcMod.ghcUserOptions’ is not a (visible) constructor field name

src/HsDev/Tools/GhcMod.hs:73:34:
    ‘GhcMod.detailed’ is not a (visible) constructor field name

src/HsDev/Tools/GhcMod.hs:73:58:
    ‘GhcMod.qualified’ is not a (visible) constructor field name

src/HsDev/Tools/GhcMod.hs:73:83:
    ‘GhcMod.ghcUserOptions’ is not a (visible) constructor field name

src/HsDev/Tools/GhcMod.hs:118:38:
    ‘GhcMod.ghcUserOptions’ is not a (visible) constructor field name

src/HsDev/Tools/GhcMod.hs:176:58:
    ‘GhcMod.ghcUserOptions’ is not a (visible) constructor field name

src/HsDev/Tools/GhcMod.hs:221:32:
    ‘GhcMod.ghcUserOptions’ is not a (visible) constructor field name

src/HsDev/Tools/GhcMod.hs:228:32:
    ‘GhcMod.hlintOpts’ is not a (visible) constructor field name
cabal: Error: some packages failed to install:
hsdev-0.1.4.3 failed during the building phase. The exception was:
ExitFailure 1

1 个答案:

答案 0 :(得分:3)

好的,我已经弄清楚了。最新版本的ghc-mod与hsdev不兼容,所以我不得不为它添加约束:

ghc-mod >= 5.3.0.0 && < 5.4.0.0