Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

haskell - Cabal error: invalid preprocessing directive #-}

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...