首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用cabal安装hsdev

无法使用cabal安装hsdev
EN

Stack Overflow用户
提问于 2015-09-19 16:13:36
回答 1查看 1.1K关注 0票数 1

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

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

发布于 2015-09-19 23:16:15

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

代码语言:javascript
复制
ghc-mod >= 5.3.0.0 && < 5.4.0.0
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32665903

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档