[Hackage] #637: Allow overriding defaultPackageDesc

Hackage trac at galois.com
Thu Feb 18 22:41:20 EST 2010

#637: Allow overriding defaultPackageDesc
  Reporter:  guest          |        Owner:      
      Type:  enhancement    |       Status:  new 
  Priority:  normal         |    Milestone:      
 Component:  Cabal library  |      Version:  HEAD
  Severity:  normal         |     Keywords:      
Difficulty:  unknown        |   Ghcversion:      
  Platform:                 |  
 I'm trying to keep the source of multiple packages in a single source
 repository. Unfortunately, I cannot maintain a .cabal file per package,
 because some commands invoke function defaultPackageDesc unconditionally.

 I tried using {{{defaultMainNoRead}}} instead of {{{defaultMain}}}
 and passing the desired package name through the environment. This
 solution doesn't work at all in It works only partially in HEAD:
 {{{Setup configure}}} and {{{Setup build}}} work but {{{Setup sdist}}}
 does not because it ignores the {{{readDesc}}} field and invokes
 {{{defaultPackageDesc}}} unconditionally.

 Would it be possible to add a field to {{{UserHooks}}} which would specify
 the .cabal filename to use? Then {{{defaultPackageDesc}}} should be always
 called through this field, never directly, and could thus be consistently

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/637>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list