Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Allow overriding defaultPackageDesc #630

bos opened this Issue · 1 comment

3 participants


(Imported from Trac #637, reported by guest on 2010-02-19)

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 overridden.


Chiming in here to add my support for this request. I recently got bit by the fact that sdist ignores readDesc, which is unfortunate, as it seems like the cleanest approach to programmatically populating fields like extra-source-files.

@ttuegel ttuegel added this to the _|_ milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.