I guess I should have checked the cpp info pages more carefully before
replying the first time around...To do what you want, add the following
to your ghc command line:
-cpp -optP-imacros -optPhawkMacros.h
hth,
--Sigbjorn
Byron Cook writes:
> There are some macros that we would like to be available for every module
> compiled in our Hawk hardware specification system.
>
...
>
>
> In Hugs, we use the -F flag to call GHC's preprocessor with the macros
> file included. We would like to do the same with GHC so that the same
> specifications can be compiled with GHC and interpreted with Hugs.
>