cvs commit: fptools/libraries/base/Text/Regex Posix.hsc

Simon Marlow simonmar at microsoft.com
Fri Jan 28 08:58:45 EST 2005


On 28 January 2005 10:16, Ross Paterson wrote:

> On Thu, Jan 27, 2005 at 06:19:51AM -0800, Simon Peyton Jones wrote:
>> simonpj     2005/01/27 06:19:51 PST
>> 
>>   Modified files:
>>     libraries/base/Text/Regex Posix.hsc
>>   Log:
>>   Fix regex.h include stuff; Ross and Malcolm might want to look at
>> the new comment 
> 
> The "hacky solution" is the only way offered by the FFI spec to
> specify the include for foreign imports.  I gave up on that
> limitation some time ago, and made the Hugs build system extract the
> -#include options from GHC OPTIONS pragmas.  I think it would be
> better to have a less compiler-specific equivalent, though.  An
> INCLUDE pragma?

Happy to implement that over here.  The really annoying thing about
specifying includes in foreign imports is there's no way to use CPP
macros to  vary the name (or presence, even) of the header file.

Cheers,
	Simon


More information about the Cvs-libraries mailing list