-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package sections in cabal.project are insufficient, need local section #3579
Comments
Hmm, I thought options at the top level were for local packages, and the problem was we didn't have any way to have options for all packages. So there may be some mistake here. Either way, needs fixing and tests on the ProjectConfig -> ElaboratedInstallPlan part would be appropriate here to check the semantics. |
I checked, and at least for cabal-install-1.24 a top-level |
The reason is that there are a set of options which are only added in the package stanza:
Was there a reason you specifically did it this way? (@dcoutts) |
@ezyang there's a |
Is there a functional difference? Doesn't look like it. Would there be any reason not to support both syntaxes? |
Bump. Should this be given higher prioritity? Writing
is tiresome. |
That would be appreciated; in |
Putting |
Thanks @philderbeast that's indeed helpful for some projects, for others (large ones) introducing another layer of tooling is problematic. |
Bump: just hit this missing feature, too. |
I believe the above linked pr (#7973) resolves this? |
It looks like it does -- thank you! Then should this ticket be closed? |
It should be closed, yeah. After #7973, the cabal.project syntax to apply ghc-options to all local packages would be:
|
I'm working on a project and I want to turn on
-Werror
. OK, I'll addghc-options: -Werror
to mycabal.project
. BUT WAIT, this turns on-Werror
for all my dependencies too. Well, the package I'm building is calledCabal
, so I'll put it in a package sectionpackage Cabal
.BUT WAIT: setup dependencies caused an older version of Cabal to be built, which also got
-Werror
applied. Disaster!All I want is a section that lets me finger the packages that are going to be built inplace.
The text was updated successfully, but these errors were encountered: