Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 888
homam Avatar asked Oct 25 '13 18:10

homam


1 Answers

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.

like image 64
Yuras Avatar answered Nov 03 '22 20:11

Yuras