cvs commit: fptools/libraries/HaXml HaXml.cabal configure fptools/libraries/HaXml/src Makefile

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Mon Apr 18 10:41:38 EDT 2005


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

> >   Modified files:
> >     libraries/HaXml      HaXml.cabal configure 
> >     libraries/HaXml/src  Makefile 
> >   Log:
> >   Tweak configuration magic to make sure the resulting .cabal file is
> >   correctly updated with the ghc-6.4 installation info.
> 
> Those fields are in the installed package description, but not the
> package description (.cabal) file -- Distribution.Simple.Register
> supplies the values.  Indeed the .cabal files should never be
> modified while configuring or building.

I have to admit I haven't been following the development of Cabal
too closely.  I am still using my own Makefiles to build HaXml, and
these tweaks only affect that process.

My (possibly erroneous) impression is that the .cabal file is
essentially what I need to supply as the input to 'ghc-pkg register',
with the caveat that it needs a few extra fields to locate the
interface files, library archive, and so on.

What the recent commit does is to add exactly those fields (to
a copy of the .cabal file) just before registering the package.
The top-level .cabal file remains unchanged, so if anyone is using
Cabal as their build system instead of the supplied Makefiles, things
should continue as normal for them?

Regards,
    Malcolm


More information about the Cvs-libraries mailing list