cvs commit: fptoolsconfigure.acfptools/libraries/base/System/PosixSignals.hscfptools/libraries/base/include HsBase.h

Simon Marlow simonmar at microsoft.com
Thu Sep 9 06:27:18 EDT 2004


On 09 September 2004 09:41, Volker Stolz wrote:

> Am 08. Sep 2004 um 11:07 CEST schrieb Simon Marlow:
>>>>   Add cpp-protected signals sigINFO & sigWINCH if available.
>>>>   (An autoconf-wizard might want to look at the bottom of
>>>>   configure.ac, the similarities between HAVE_SIGPOLL, HAVE_SIGINFO
>>>>   & HAVE_SIGWINCH can surely be factored out)
>>> 
>>> - isn't it highly undesirable for a module to have different
>>>   interfaces in different environments?  (That is, can't these
>>>   things be exported with value 0?)
>> 
>> I've no objection to putting them *somewhere* - perhaps
>> System.Posix.Signals.Exts?  With System.Posix.Exts to re-export
>> non-POSIX things?
> 
> Yes, that'd be possible in this case -- but I'm sure there are
> similar cases lurking out there where we'd have a data type, e.g.
> 
> data Signal = sigFoo | sigBar
> 
> and in this case, this couldn't be solved as cleanly, I fear.

In that case you would have to define the data type in another module,
eg. System.Posix.Blah.Internals, and then re-export the relevant bits
from System.Posix.Blah and System.Posix.Blah.Exts.

Cheers,
	Simon


More information about the Cvs-libraries mailing list