[Haskell] cabal and ghcconfigure.h

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Dec 6 06:39:02 EST 2005

Isaac Jones <ijones at syntaxpolice.org> writes:

> BTW, does cpphs do anything with ghcconfig.h?  Should cabal be adding
> that include path somewhere in the cases where it uses cpphs?

cpphs has no pre-defined macros, and no predefined include paths.
If you want it to pretend to be ghc -cpp, you need to add arguments like
    -D__GLASGOW_HASKELL__=604  -I/usr/local/lib/ghc-6.4.1/includes
explicitly.  (More generally, you might want to record such arguments
in a little wrapper script that calls cpphs.)


More information about the Haskell mailing list