haskell-suite/haskell-names — pull request #51 by phischu (2014-04-29 15:52:22+00:00)
Title: Manually add preInclude cabal_macros.h in cpphs options

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