-
Notifications
You must be signed in to change notification settings - Fork 710
Parse program options for local packages #7374
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
Conversation
'projectConfigLocalPackages' provides options for all local packages. This patch allows to pass program options via 'PROG-options' field.
Does
|
Nope. I'm not sure why you're getting that error. The same command works for me. What OS/ghc/cabal are you using? |
Oh actually if this is based on a commit preceding 6896c6a you may want to rebase: the structure of the repository is simpler now and it also affects tests (though that specific error looks unrelated) |
Sounds like a good idea to have this in some form, but we should consider @dcoutts' comment first. By the way, doesn't the undocumented |
@fgaz what's the syntax of the undocumented |
I think you mean
or
like in the global configuration (just a guess, can't check if it's true right now) |
It is the latter syntax. However, it does not work for me because it applies options to all packages, but I'd like to only set |
Do i understand this right, it allows writing in
which applies to local packages only? However
or
applies to every package. This is unfortunately confusing. There should be a clear documentation section describing the difference of top-level and EDiT: the fact |
Does An exmaple: I find it slightly confusing that |
it seems that both
and
apply to every package :/ |
I believe this is superseded by #7973 ? |
Yes it is. |
This is a simple attempt to fix #3579
Documentation needs to be updated, but I'd like first see if this is an acceptable solution.
Please also shortly describe how you tested your change. Bonus points for added tests!
Manual testing by setting
ghc-options
in acabal.project.local
file.