cvs commit: fptools/libraries/Cabal/Distribution InstalledPackageInfo.hs Package.hs PackageDescription.hs PreProcess.hs Version.hs fptools/libraries/Cabal/Distribution/Compat Error.hs Exception.hs fptools/libraries/Cabal/Distribution/Simple Build.hs GHCPackageConfig.hs ...

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Jan 11 10:28:47 EST 2005


Ross Paterson <ross at soi.city.ac.uk> writes:

> GHC barfs on OPTIONS_COMPILE:
> 
> 	Distribution/Compat/Error.hs:
> 	    unknown flags in  {-# OPTIONS #-} pragma: _COMPILE -prelude

That's unfortunate.  I'd be happy to change nhc98's pragma name, but
what should I change it to?  Simon M suggested on the libraries list
(in response to Henrik Nilsson, 21st Oct 2004):

> > [Aside: Is there a general agreement that the OPTION pragma should
> > be understood by all Haskell systems, whereas system-specific
> > options are given by pragmas like OPTIONS-GHC, OPTIONS-NHC, etc.
> > or something along those lines?]
> 
> I'm happy to switch to using {-# OPTIONS_GHC #-} (or something) if
> there's consensus.  Consider that a vote in favour on behalf of the GHC
> camp.

Sounds good to me, however, it would seem that the current ghc cannot
distinguish between OPTIONS and OPTIONS_ANYTHING.  Would that be easy
to fix?

Regards,
    Malcolm


More information about the Cvs-libraries mailing list