On Fri, Jan 28, 2005 at 01:58:45PM -0000, Simon Marlow wrote:
> 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.

OK, how about:

{-# INCLUDE <math.h> #-}
{-# INCLUDE "mydefs.h" #-}
_______________________________________________
Cvs-libraries mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to