diff --git a/Cabal/Distribution/Version.hs b/Cabal/Distribution/Version.hs index 47a13146c6c55bef5e8049b5c1d90ecedc6d498a..bd22429b71dbaeac9959788ab6cf2e1f2801730d 100644 --- a/Cabal/Distribution/Version.hs +++ b/Cabal/Distribution/Version.hs @@ -821,7 +821,10 @@ hasUpperBound (UnionVersionRanges x y) = hasUpperBound x && hasUpperBound y hasUpperBound (IntersectVersionRanges x y) = hasUpperBound x || hasUpperBound y hasUpperBound (VersionRangeParens x) = hasUpperBound x --- | Does the version range have a lower bound? +-- | Does the version range have an explicit lower bound? +-- +-- Note: this function only considers the user-specified lower bounds, but not +-- the implicit >=0 lower bound. -- -- @since 1.24.0.0 hasLowerBound :: VersionRange -> Bool