Cabal error: invalid preprocessing directive #-}

匿名 (未验证) 提交于 2019-12-03 01:11:01

问题:

$ 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!

回答1:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!