[Hackage] #637: Allow overriding defaultPackageDesc

#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 1.6.0.3. 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 overridden. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/637 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage