“invalid preprocessing directive” when installing

2019-08-10 07:29发布

问题:

I try running:

cabal install memoize

in the Terminal but all I get is:

11 warnings and 1 error generated.
Failed to install memoize-0.6
cabal: Error: some packages failed to install:
memoize-0.6 failed during the building phase. The exception was:
ExitFailure 1

The 1 error is:

Data/Function/Memoize/TH.hs:5:6:
     error: invalid preprocessing directive
        #-}
         ^