首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ghc-mod安装失败

ghc-mod安装失败
EN

Stack Overflow用户
提问于 2012-10-19 12:46:27
回答 1查看 2.1K关注 0票数 4

我刚刚在一个虚拟机上全新安装了Arch Linux,并安装了GHC (7.6.1),而cabal-install的版本是1.16.0-2

我正在尝试为haskell编码设置一个环境,包括ghcmod-vim插件,这当然需要ghc-mod。

运行cabal install ghc-mod会出现几个错误

代码语言:javascript
复制
Gap.hs:81:19:
    Couldn't match expected type `PprStyle -> String' with `[Char]'
    Expected type: String
      Actual type: PprStyle -> String
    Probable cause: `renderWithStyle' is applied to too few arguments
    In the expression: renderWithStyle d stl
    In an equation for `renderMsg':
        renderMsg d stl = renderWithStyle d stl

Gap.hs:81:35:
    Couldn't match expected type `DynFlags' with actual type `SDoc'
    In the first argument of `renderWithStyle', namely `d'
    In the expression: renderWithStyle d stl
    In an equation for `renderMsg':
        renderMsg d stl = renderWithStyle d stl

Gap.hs:81:37:
    Couldn't match type `SDoc' with `SDoc'
    In the second argument of `renderWithStyle', namely `stl'
    In the expression: renderWithStyle d stl
    In an equation for `renderMsg':
        renderMsg d stl = renderWithStyle d stl

Gap.hs:114:28:
    Couldn't match type `Module' with `ModuleName'
    Expected type: ModSummary -> ModuleName
      Actual type: ModSummary -> Module
    In the second argument of `(.)', namely `ms_mod'
    In the first argument of `map', namely `(IIModule . ms_mod)'
    In the first argument of `(<$>)', namely `map (IIModule . ms_mod)'

我真的不明白这些编译器错误是如何发生的,因为ghc-mod 1.11.0似乎已经在6月份被黑客攻击了,而我对类似问题的搜索也没有找到任何结果。

关于如何解决这个问题的想法和解决方案?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-19 13:26:38

你可能想看看https://github.com/kazu-yamamoto/ghc-mod。最新的提交被称为"GHC 7.6.1兼容性“,所以这个版本可能会解决你的问题。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12967549

复制
相关文章

相似问题

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