Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually add preInclude cabal_macros.h in cpphs options #51

Closed
wants to merge 4 commits into from

Conversation

phischu
Copy link
Contributor

@phischu phischu commented Apr 29, 2014

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 haskell/cabal@944d507

@UnkindPartition
Copy link
Member

Thanks for the report. The proper place to take care of this is haskell-packages. I filed this under haskell-suite/haskell-packages#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants