-
Notifications
You must be signed in to change notification settings - Fork 697
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
[RFC] Summarize contiguous version ranges #9831
Labels
Comments
philderbeast
changed the title
Summarize contiguous version ranges
[RFC] Summarize contiguous version ranges
Mar 21, 2024
Prefix OptionWe could group by the leading two (or one) elements, rendering all the versions with fewer characters;
- 3.1.8, 3.1.7, 3.1.6.2, 3.1.6.1, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1,
- 3.0.1, 3.0,
- 2.19.2, 2.19.1, 2.19,
- 2.18,
- 2.17.1.1, 2.17.1, 2.17.0.1, 2.17,
- 2.16.2, 2.16.1, 2.16,
- 2.15,
- 2.14.2, 2.14.1, 2.14.0.3, 2.14.0.2, 2.14.0.1, 2.14,
- 2.13,
- 2.12,
- 2.11.4, 2.11.3.2, 2.11.3.1, 2.11.3, 2.11.2, 2.11.1.1, 2.11.1, 2.11.0.4, 2.11.0.3, 2.11.0.2, 2.11.0.1, 2.11,
- 2.10.1, 2.10,
- 2.9.2.1, 2.9.2, 2.9.1.1, 2.9.1, 2.9,
- 2.8.1, 2.8.0.1, 2.8,
- 2.7.3, 2.7.2, 2.7.1, 2.7,
- 2.6,
- 2.5,
- 2.4,
- 2.3.1, 2.3,
- 2.2.3.2, 2.2.3.1, 2.2.3, 2.2.2.1, 2.2.2, 2.2.1, 2.2,
- 2.1.3, 2.1.2, 2.1.1, 2.1,
- 2.0.6, 2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1.1, 2.0.1, 2.0.0.1, 2.0,
- 1.19.2.4, 1.19.2.3, 1.19.2.2, 1.19.2.1, 1.19.2, 1.19.1, 1.19,
- 1.18,
- 1.17.2, 1.17.1, 1.17.0.3, 1.17.0.2, 1.17.0.1, 1.17,
- 1.16.0.2, 1.16.0.1, 1.16,
- 1.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0.1, 0.0},
- 1.2.{4.0, 3.0, 2.0, 1},
- 1.1.6,
+ 3.10.{2.1-0, 1.0}
+ 3.8.1.0,
+ 3.6.{3-0.0},
+ 3.4.{1-0.0},
+ 3.2.{1-0.0},
+ 3.0.{2-0.0},
+ 2.4.{1.0, 0.1-0},
+ 2.2.{0.1-0},
+ 2.0.{1.1-0, 0.2},
+ 1.24.{2-0.0},
+ 1.22.{8-2.0, 1.1-0, 0.0},
+ 1.20.{0.4-0},
+ 1.18.{1.7-1, 1, 0},
+ 1.16.{0.3-1, 0},
+ 1.14.0,
+ 1.12.0,
+ 1.10.{2-0.0},
+ 1.8.{0.6, 0.4, 0.2},
+ 1.6.{0.3-1},
+ 1.4.{0.2-0},
+ 1.2.{4-2.0, 1},
+ 1.1.6, |
Tree List Option
|
For #10551, I altered git diff
diff --git a/cabal-install/src/Distribution/Client/List.hs b/cabal-install/src/Distribution/Client/List.hs
index 480e2c46f..de4b0562d 100644
--- a/cabal-install/src/Distribution/Client/List.hs
+++ b/cabal-install/src/Distribution/Client/List.hs
@@ -469,7 +469,7 @@ showPackageDetailedInfo pkginfo =
"Versions available"
sourceVersions
(altText null "[ Not available from server ]")
- (dispTopVersions 9 (preferredVersions pkginfo))
+ (dispTopVersions 199 (preferredVersions pkginfo))
, entry
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[__0] rejecting: pandoc; 1.14 through 3.1.8
Originally posted by @gbaz in #9559 (comment)
How would we summarize ranges? The suggestion above is very brief. How do I check that the solver has tried every version available?
Could we use something like range extraction? This is a bit more explicit.
How would this work with multiple levels of range? Would we show lower levels where each leaf is only a
.0
version? Is descending order readable for ranges?Two lengthy examples to consider,
pandoc
andCabal
;pandoc
Cabal
with lots of trailing zerosOptions
1.14 through 3.1.8
3.10.{2.1, 2.0, 1.0}
3.10.{2.1-0, 1.0}
The text was updated successfully, but these errors were encountered: