“无效的预处理指令”安装memoize的时候(“invalid preprocessing dire

2019-10-20 02:44发布

我尝试运行:

cabal install memoize

在终端,但我得到的是:

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

1.错误是:

Data/Function/Memoize/TH.hs:5:6:
     error: invalid preprocessing directive
        #-}
         ^
文章来源: “invalid preprocessing directive” when installing memoize