[Haskell-cafe] Being Compatible

Graham Klyne 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.

(Enter cpphs.)

#g
--


>The usual cpp macros are:
>
>     __HASKELL98__               # supports at least the '98 standard
>     __GLASGOW_HASKELL__         = 504, 602, etc
>     __HUGS__
>     __NHC__
>     __HBC__
>
>You might also occasionally see
>
>     __HADDOCK__         # for documentation-only preprocessing
>     __HAT__             # for the Hat tracer
>
>Regards,
>     Malcolm
>_______________________________________________
>Haskell-Cafe mailing list
>Haskell-Cafe at haskell.org
>http://www.haskell.org/mailman/listinfo/haskell-cafe

------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact



More information about the Haskell-Cafe mailing list