[Haskell-cafe] Being Compatible
GK at ninebynine.org
Mon Oct 11 11:39:27 EDT 2004
At 10:47 08/10/04 +0100, Malcolm Wallace wrote:
>John Goerzen <jgoerzen at complete.org> writes:
> > My initial thought was to use the cpp-style ifdefs I've seen elsewhere
> > to mask those unsupported features on those particular systems. But
> > Hugs at least doesn't support that, and I've found it extremely
> > difficult to find a list of predefined macros for the other systems
> > anyway.
>I thought Hugs does support preprocessing, with the -F option?
Yes, but it requires an external preprocessor program to be available.
>The usual cpp macros are:
> __HASKELL98__ # supports at least the '98 standard
> __GLASGOW_HASKELL__ = 504, 602, etc
>You might also occasionally see
> __HADDOCK__ # for documentation-only preprocessing
> __HAT__ # for the Hat tracer
>Haskell-Cafe mailing list
>Haskell-Cafe at haskell.org
More information about the Haskell-Cafe