haskell-suite / haskell-names

Haskell suite library for name resolution
52 stars 17 forks source link

Manually add preInclude cabal_macros.h in cpphs options #51

Closed phischu closed 10 years ago

phischu commented 10 years ago

I tried to use hs-gen-iface with cabal i.e.:

cabal install --haskell-suite -w hs-gen-iface transformers

It failed with

hs-gen-iface: Cannot expand #if directive in file ./Control/Monad/Trans/Error.hs  at line 60 col 1:
    MIN_VERSION_base(a,b,c) is not a defined macro

cabal_macros.h is not in the preInclude field of the cpphs options given to hs-gen-iface by cabal but I believe it should be. This is not a fix but a workaround.

Using https://github.com/haskell/cabal/commit/944d50780ee554eb64c804a92793ad2f0fb56144

UnkindPartition commented 10 years ago

Thanks for the report. The proper place to take care of this is haskell-packages. I filed this under https://github.com/haskell-suite/haskell-packages/issues/15