[Haskell-cafe] Hugs CPP macros?

John Goerzen jgoerzen at complete.org
Tue Apr 5 12:37:07 EDT 2005


I need to use some conditional compilation in MissingH so that it can
work with GHC 6.2, 6.4, and the old/new Hugs libraries.

I found the appropriate macros to test for with ghc, but I can't for

The cpphs-hugs doesn't even define __HUGS__.  It seems that only hugs-hc
and ffihugs define that, but I don't need them.  And where __HUGS__ is
defined, it isn't defined with a version number, so it doesn't help me
differentiate the Hugs versions.

Any suggstions?


More information about the Haskell-Cafe mailing list