John

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.

Simon

| -----Original Message-----
| From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
| Goerzen
| Sent: 07 October 2004 15:35
| To: [EMAIL PROTECTED]
| 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
of
| 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
with
| 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
| [EMAIL PROTECTED]
| http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to