C preprocessor + WinHugs
Simon Marlow
simonmar at microsoft.com
Mon Oct 31 04:47:56 EST 2005
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
More information about the Cvs-hugs
mailing list