RE: C preprocessor + WinHugs

"Simon Marlow" <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.hugs
Message-ID <3429668D0E777A499EE74A7952C382D104D8DBBD__12120.154061313$1130752118$gmane$org@EUR-MSG-01.europe.corp.microsoft.com>
On 31 October 2005 09:36, Ross Paterson wrote:

> On Mon, Oct 31, 2005 at 09:02:58AM +0000, Malcolm Wallace wrote:
>> There was talk at one stage of a standard language-extensions pragma,
>> corresponding to your third option.
>>     {-# LANGUAGE cpp MPTC fundeps #-}
>> I think SimonM has just implemented it for ghc, the rest of us are
>> lagging behind.
> 
> {-# LANGUAGE CPP #-} has been supported for Hugs since last year,
> but only when building via Cabal.  That is, the Cabal library handles
> it for --hugs, but assumes the compilers will handle it themselves.

The GHC version allows a list of the extensions from
Language.Haskell.Extension to be given:

 {-# LANGUAGE CPP, ForeignFunctionInterface,
              MultiParamTypeClasses #-}

I'm not sure the commas are a good idea, but it's written this way in
the Cabal documentation.  It's not too late to change this.

Cheers,
	Simon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.