Skip to content

Allow allow-newer in cabal.project package stanzas #7896

Open

Description

@bgamari

Describe the bug
Currently allow-newer can be used to lift lower-bounds on a set of packages throughout the install plan. However, this is often a far larger hammer than is necessary. More often, I merely need to lift an outdated bound in a particular package. cabal-install should allow the user to express this intent in their cabal.project file with use of the allow-newer field in a package stanza. For instance, if package pipes-zlib has an outdated bound on ghc-prim, I could lift this bound using,

package pipes-zlib
    allow-newer: ghc-prim

This would have the effect of dropping the upper bound from any constraints on ghc-prim from pipes-zlib.cabal.

Activity

  1. angerman commented on Jan 5, 2022

    @angerman
    Collaborator
  2. bgamari commented on Jan 5, 2022

    @bgamari
    ContributorAuthor

    Indeed it is. I do think that my proposal is more intuitive but nevertheless it's nice to know that the same thing can be achieved today.

  3. added
    can-workaround
    on Jan 5, 2022
  4. alt-romes commented on Dec 25, 2023

    @alt-romes
    Collaborator

    I ran into this today. I expected package X\nallow-newer:base to work too, and found this while searching for the "right way". I agree with @bgamari that it would be more intuitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    can-workaroundtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions