Skip to content

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

Merged
23Skidoo merged 5 commits into
haskell:masterfrom
23Skidoo:allow-newer-scoped
Feb 20, 2016
Merged

23Skidoo merged 5 commits into
haskell:masterfrom
23Skidoo:allow-newer-scoped

Conversation

@23Skidoo

Copy link
Copy Markdown
Member

Fixes #2756.

@23Skidoo

Copy link
Copy Markdown
Member Author

/cc @dcoutts @hvr

@hvr

hvr commented Feb 20, 2016

Copy link
Copy Markdown
Member

@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
Copy Markdown
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
Copy Markdown
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