cvs commit: fptools/libraries/Cabal/DistributionInstalledPackageInfo.hs Package.hs PackageDescription.hsPreProcess.hs Version.hsfptools/libraries/Cabal/Distribution/Compat Error.hsException.hs fptools/libraries/Cabal/Distribution/SimpleBuild.hs GHCPac

Simon Marlow simonmar at microsoft.com
Tue Jan 11 11:23:34 EST 2005


On 11 January 2005 16:04, Ross Paterson wrote:

> On Tue, Jan 11, 2005 at 03:22:56PM -0000, Simon Marlow wrote:
>> On 11 January 2005 15:04, Ross Paterson wrote:
>>> GHC barfs on OPTIONS_COMPILE:
>>> 
>>> 	Distribution/Compat/Error.hs:
>>> 	    unknown flags in  {-# OPTIONS #-} pragma: _COMPILE -prelude
>> 
>> That's a bug.  I've fixed it in CVS, but unfortunately it means that
>> these Cabal sources won't compile with older GHC's.  Does it work to
>> surround the pragma with an #ifdef?
> 
> Doesn't GHC ignore #-lines while looking for these pragmas?

good point.  I guess we're stuck - GHC <= 6.2 can't compile anything
with an OPTIONS_COMPILE pragma.

Simon


More information about the Cvs-libraries mailing list