Skip to content

Commit 254e0e3

Browse files
committed
Drop the requirement of specifying upper bounds
1 parent c633fe8 commit 254e0e3

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

v1.0/pvp-specification.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,17 @@ The (incomplete!) decision tree summarises the PVP rules in a concise form
177177

178178
![](/v1.0/pvp-decision-tree.svg)
179179

180+
The tree is not a precise representation of the spec.
181+
180182
Dependencies in Cabal
181183
---------------------
182184

183185
When publishing a Cabal package, you **SHALL** ensure that your
184186
dependencies in the `build-depends` field are accurate. This means
185-
specifying not only lower bounds, but also upper bounds on every
186-
dependency.
187-
188-
At some point in the future, Hackage may refuse to accept packages that
189-
do not follow this convention. The aim is that before this happens, we
190-
will put in place tool support that makes it easier to follow the
191-
convention and less painful when dependencies are updated.
187+
at least specifying lower bounds. You **SHALL* at least specify upper
188+
bounds if there are known incompatibilities.
189+
It is **NOT REQUIRED** to set an upper bound if all currently known
190+
versions of a dependency are compatible, although it is **RECOMMENDED**.
192191

193192
To minimize breakage when new package versions are released, you can use
194193
dependencies that are insensitive to minor version changes (e.g.

v1.1/pvp-specification.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,10 @@ Dependencies in Cabal
185185

186186
When publishing a Cabal package, you **SHALL** ensure that your
187187
dependencies in the `build-depends` field are accurate. This means
188-
specifying not only lower bounds, but also upper bounds on every
189-
dependency.
190-
191-
At some point in the future, Hackage may refuse to accept packages that
192-
do not follow this convention. The aim is that before this happens, we
193-
will put in place tool support that makes it easier to follow the
194-
convention and less painful when dependencies are updated.
188+
at least specifying lower bounds. You **SHALL* at least specify upper
189+
bounds if there are known incompatibilities.
190+
It is **NOT REQUIRED** to set an upper bound if all currently known
191+
versions of a dependency are compatible, although it is **RECOMMENDED**.
195192

196193
To minimize breakage when new package versions are released, you can use
197194
dependencies that are insensitive to minor version changes (e.g.

0 commit comments

Comments
 (0)