Cabal error:无效的预处理指令# - } [英] Cabal error: invalid preprocessing directive #-}

查看:364
本文介绍了Cabal error:无效的预处理指令# - }的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  $ cabal install arithmoi-0.4.0.3 

结果在以下多个错误中:

  Math / NumberTheory / Moduli.hs:489:4:
错误:无效的预处理指令
# - }
^



我的系统:



OSX小牛



Cabal版本= 1.18.1.1

GHCI版本= 7.6.3

预先感谢!

解决方案

可能的解决方法<



xCode 5 带有 clang 作为c / c ++ / obj-c编译器。 Haskell平台尚未准备好。下一个 ghc 版本将解决这个问题。



另请参阅这里


$ cabal install arithmoi-0.4.0.3

results in multiple errors like:

Math/NumberTheory/Moduli.hs:489:4:
     error: invalid preprocessing directive
      #-}
       ^

My System:

OSX Mavericks

Cabal version = 1.18.1.1

GHCI version = 7.6.3

Thanks in advance!

解决方案

Possible workaround here.

xCode 5 comes with clang as c/c++/obj-c compiler. Haskell Platform is not ready for that. The next ghc release will fix that.

Also see here.

这篇关于Cabal error:无效的预处理指令# - }的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆