$ cabal install arithmoi-0.4.0.3
导致多个错误,例如:
Math/NumberTheory/Moduli.hs:489:4:
error: invalid preprocessing directive
#-}
^
我的系统:
OSX 小牛队
cabal 版本 = 1.18.1.1
GHCI 版本 = 7.6.3
提前致谢!
最佳答案
可能的解决方法 here .
xCode 5
附带 clang
作为 c/c++/obj-c 编译器。 Haskell Platform 尚未为此做好准备。下一个 ghc 版本将解决这个问题。
另请参阅here .
关于haskell - cabal 错误: invalid preprocessing directive #-},我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19597324/