[Haskell-cafe] Being Compatible

Simon Peyton-Jones simonpj at microsoft.com
Fri Oct 8 11:25:40 EDT 2004


Yes, I think your best route is cpp-ery, horrible though it is.

I suggest you use ghc6.2.1 (or 6.2.2 when it comes out, which will be
Monday-ish), rather than some ghc5.x version.  Otherwise you risk
investing work in making a library incompatible with the current story.


| -----Original Message-----
| From: haskell-cafe-bounces at haskell.org
[mailto:haskell-cafe-bounces at haskell.org] On Behalf Of John
| Goerzen
| Sent: 07 October 2004 15:35
| To: haskell-cafe at haskell.org
| Subject: [Haskell-cafe] Being Compatible
| Hi,
| I have appreciated some of the comments here about what exactly is
| standardized.  My next question is how to work at the greatest number
| places.
| I am working on a library of Haskell-related utilities.  There is some
| code in there that works with binary I/O, and some code that works
| rawSystem(), etc.
| Some of these are not supported on Hugs, nhc98, or ghc5 to varying
| degrees.
| 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.
| What is the suggested way to work around these problems?
| _______________________________________________
| Haskell-Cafe mailing list
| Haskell-Cafe at haskell.org
| http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list