Skip to content

Allow limiting the scope of '--allow-newer'. #3171

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

Merged
merged 5 commits into from
Feb 20, 2016

Conversation

23Skidoo
Copy link
Member

Fixes #2756.

@23Skidoo
Copy link
Member Author

/cc @dcoutts @hvr

@hvr
Copy link
Member

hvr commented Feb 20, 2016

@23Skidoo 👍

one question though, does the allow-newer field only allow True/False? @dcoutts: as the new cabal.project features allows per-package flags; it'd be neat if we could then write something like

packages: myproject.cabal, somemodded-pkg/*.cabal
-- applies to all
with-compiler: /opt/ghc/8.0.1/bin/ghc
-- corresponds to `--allow-newer: ghc-prim`
allow-newer: ghc-prim
tests: False

-- corresponds to `--allow-never aeson:base,aeson:process`
package aeson
   allow-newer: base,process

@23Skidoo
Copy link
Member Author

@hvr

one question though, does the allow-newer field only allow True/False?

Yes, but I can change it to also support the full syntax if you want.

@23Skidoo
Copy link
Member Author

Yes, but I can change it to also support the full syntax if you want.

Done.

23Skidoo added a commit that referenced this pull request Feb 20, 2016
Allow limiting the scope of '--allow-newer'.
@23Skidoo 23Skidoo merged commit 2fa6663 into haskell:master Feb 20, 2016
@23Skidoo 23Skidoo deleted the allow-newer-scoped branch February 20, 2016 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants