Skip to content
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

Open
philderbeast opened this issue Mar 21, 2024 · 4 comments
Open

[RFC] Summarize contiguous version ranges #9831

philderbeast opened this issue Mar 21, 2024 · 4 comments
Labels

Comments

@philderbeast
Copy link
Collaborator

philderbeast commented Mar 21, 2024

I would prefer going further and attempt to summarize contiguous version ranges, even though this would be more work.

[__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?

3.0.2.0, 3.0.1.0, 3.0.0.0 => 3.0.{0-2}.0

Two lengthy examples to consider, pandoc and Cabal;

  • pandoc
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.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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2.4.1.0, 2.4.0.1,
2.4.0.0, 2.2.0.1, 2.2.0.0, 2.0.1.1, 2.0.1.0, 2.0.0.2, 1.24.2.0, 1.24.0.0,
1.22.8.0, 1.22.7.0, 1.22.6.0, 1.22.5.0, 1.22.4.0, 1.22.3.0, 1.22.2.0, 1.22.1.1,
1.22.1.0, 1.22.0.0, 1.20.0.4, 1.20.0.3, 1.20.0.2, 1.20.0.1, 1.20.0.0, 1.18.1.7,
1.18.1.6, 1.18.1.5, 1.18.1.4, 1.18.1.3, 1.18.1.2, 1.18.1.1, 1.18.1, 1.18.0,
1.16.0.3, 1.16.0.2, 1.16.0.1, 1.16.0, 1.14.0, 1.12.0, 1.10.2.0, 1.10.1.0,
1.10.0.0, 1.8.0.6, 1.8.0.4, 1.8.0.2, 1.6.0.3, 1.6.0.2, 1.6.0.1, 1.4.0.2,
1.4.0.1, 1.4.0.0, 1.2.4.0, 1.2.3.0, 1.2.2.0, 1.2.1, 1.1.6, 1.24.1.0

Options

  • ascending bounds 1.14 through 3.1.8
  • prefix 3.10.{2.1, 2.0, 1.0}
  • prefix with range extraction 3.10.{2.1-0, 1.0}
  • tree list
    -  3
    --  10[2.1, 2.0, 1.0]
    
@philderbeast philderbeast changed the title Summarize contiguous version ranges [RFC] Summarize contiguous version ranges Mar 21, 2024
@philderbeast
Copy link
Collaborator Author

philderbeast commented Mar 22, 2024

Prefix Option

We could group by the leading two (or one) elements, rendering all the versions with fewer characters;

  • pandoc
- 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,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+ 1.24.{2.0, 1.0, 0.0},
+ 1.22.{8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.1, 1.0, 0.0},
+ 1.20.{0.4, 0.3, 0.2, 0.1, 0.0},
+ 1.18.{1.7, 1.6, 1.5, 1.4, 1.3, 1.2, 1.1, 1, 0},
+ 1.16.{0.3, 0.2, 0.1, 0},
+ 1.14.0,
+ 1.12.0,
+ 1.10.{2.0, 1.0, 0.0},
+ 1.8.{0.6, 0.4, 0.2},
+ 1.6.{0.3, 0.2, 0.1},
+ 1.4.{0.2, 0.1, 0.0},
+ 1.2.{4.0, 3.0, 2.0, 1},
+ 1.1.6,

@philderbeast
Copy link
Collaborator Author

philderbeast commented Mar 22, 2024

Prefix with Range Extraction Option

As above but with added contiguous range extraction;

  • pandoc
- 3.1.{8, 7, 6.2, 6.1, 6, 5, 4, 3, 2, 1, _},
- 3.0.{1, _},
- 2.19.{2, 1, _},
- 2.18,
- 2.17.{1.1, 1, 0.1, _},
- 2.16.{2, 1, _},
- 2.15,
- 2.14.{2, 1, 0.3, 0.2, 0.1, _} ,
- 2.13,
- 2.12,
- 2.11.{4, 3.2, 3.1, 3, 2, 1.1, 1, 0.4, 0.3, 0.2, 0.1, _},
- 2.10.{1, _},
- 2.9.{2.1, 2, 1.1, 1, _},
- 2.8.{1, 0.1, _},
- 2.7.{3, 2, 1, _},
- 2.6,
- 2.5,
- 2.4,
- 2.3.{1, _},
- 2.2.{3.2, 3.1, 3, 2.1, 2, 1, _},
- 2.1.{3, 2, 1, _},
- 2.0.{6, 5, 4, 3, 2, 1.1, 1, 0.1, _},
- 1.19.{2.4, 2.3, 2.2, 2.1, 2, 1, _},
- 1.18,
- 1.17.{2, 1, 0.3, 0.2, 0.1, _},
- 1.16.{0.2, 0.1, _},
- 1.15.{2.1, 2, 1.1, 1, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, _},
- 1.14.{1, 0.4, 0.3, 0.2, 0.1, _},
- 1.13.{2.1, 2, 1, 0.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1, _},
+ 1.5.{1.1, 1, 0.1, _},
+ 1.4,
+ 1.3,
+ 1.2.{1, _},
+ 1.1,
+ 1.0.{0.1, _},
+ 0.{46-41, 4},
  • Cabal
- 3.10.{2.1, 2.0, 1.0}
- 3.8.1.0,
- 3.6.{3.0, 2.0, 1.0, 0.0},
- 3.4.{1.0, 0.0},
- 3.2.{1.0, 0.0},
- 3.0.{2.0, 1.0, 0.0},
- 2.4.{1.0, 0.1, 0.0},
- 2.2.{0.1, 0.0},
- 2.0.{1.1, 1.0, 0.2},
- 1.24.{2.0, 1.0, 0.0},
- 1.22.{8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.1, 1.0, 0.0},
- 1.20.{0.4, 0.3, 0.2, 0.1, 0.0},
- 1.18.{1.7, 1.6, 1.5, 1.4, 1.3, 1.2, 1.1, 1, 0},
- 1.16.{0.3, 0.2, 0.1, 0},
- 1.14.0,
- 1.12.0,
- 1.10.{2.0, 1.0, 0.0},
- 1.8.{0.6, 0.4, 0.2},
- 1.6.{0.3, 0.2, 0.1},
- 1.4.{0.2, 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,

@philderbeast
Copy link
Collaborator Author

philderbeast commented Mar 23, 2024

Tree List Option

  • pandoc
-  3
--    1[8, 7, 6.2, 6.1, 6, 5, 4, 3, 2, 1, _]
--    0[1, _]
-  2
--   19[2, 1, _]
--   18[_]
--   17[1.1, 1, 0.1, _]
--   16[2, 1, _]
--   15[_]
--   14[2, 1, 0.3, 0.2, 0.1, _]
--   13[_]
--   12[_]
--   11[4, 3.2, 3.1, 3, 2, 1.1, 1, 0.4, 0.3, 0.2, 0.1, _]
--   10[1, _]
--    9[2.1, 2, 1.1, 1, _]
--    8[1, 0.1, _]
--    7[3, 2, 1, _]
--    6[_]
--    5[_]
--    4[_]
--    3[1, _]
--    2[3.2, 3.1, 3, 2.1, 2, 1, _]
--    1[3, 2, 1, _]
--    0[6, 5, 4, 3, 2, 1.1, 1, 0.1, _]
-  1
--   19[2.4, 2.3, 2.2, 2.1, 2, 1, _]
--   18[_]
--   17[2, 1, 0.3, 0.2, 0.1, _]
--   16[0.2, 0.1, _],
--   15[2.1, 2, 1.1, 1, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, _]
--   14[1, 0.4, 0.3, 0.2, 0.1, _]
--   13[2.1, 2, 1, 0.1, _]
--   12[4.2, 4, 3.3, 3.2, 3.1, 3, 2.1, 2, 1, 0.2, 0.1, _]
--   11[1, _]
--   10[1, 0.5, 0.4, 0.3, 0.2, 0.1, _]
--    9[4.5, 4.4, 4.3, 4.2, 4.1, 4, 3, 2, 1.2, 1.1, 1, 0.5, 0.4, 0.3, 0.2, _]
--    8[2.1, 2, 1.2, 1.1, 1, 0.3, 0.2, 0.1, _]
--    6[0.1, _]
--    5[1.1, 1, 0.1, _]
--    4[_]
--    3[_]
--    2[1, _]
--    1[1]
--    0[0.1, _]
-  0[46, 45, 44, 43, 42, 41, 4]
  • Cabal
-  3
--  10[2.1, 2.0, 1.0]
--   8[1.0]
--   6[3.0, 2.0, 1.0, 0.0]
--   4[1.0, 0.0]
-    2[1.0, 0.0]
-    0[2.0, 1.0, 0.0]
-  2
--   4[1.0, 0.1, 0.0]
--   2[0.1, 0.0]
--   0[1.1, 1.0, 0.2]
-  1
--  24[2.0, 1.0, 0.0]
--  22[8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.1, 1.0, 0.0]
--  20[0.4, 0.3, 0.2, 0.1, 0.0]
--  18[1.7, 1.6, 1.5, 1.4, 1.3, 1.2, 1.1, 1, 0]
--  16[0.3, 0.2, 0.1, 0]
--  14[0]
--  12[0]
--  10[2.0, 1.0, 0.0]
--   8[0.6, 0.4, 0.2]
--   6[0.3, 0.2, 0.1]
--   4[0.2, 0.1, 0.0]
--   2[4.0, 3.0, 2.0, 1]
--   1[6]

@philderbeast
Copy link
Collaborator Author

philderbeast commented Nov 13, 2024

For #10551, I altered cabal info so that it displays more versions and this shows we'd have to cater to the display of annotated versions, like the deprecated version (2.11) of QuickCheck.

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
$ cabal run cabal-install:exe:cabal -- info QuickCheck
...
* QuickCheck       (library)
    Synopsis:      Automatic testing of Haskell programs
    Versions available: 1.0, 1.1.0.0, 1.2.0.0, 1.2.0.1, 2.1, 2.1.0.1, 2.1.0.2,
                        2.1.0.3, 2.1.1, 2.1.1.1, 2.1.2, 2.2, 2.3, 2.3.0.1,
                        2.3.0.2, 2.4, 2.4.0.1, 2.4.1, 2.4.1.1, 2.4.2, 2.5,
                        2.5.1, 2.5.1.1, 2.6, 2.7, 2.7.1, 2.7.2, 2.7.3, 2.7.4,
                        2.7.5, 2.7.6, 2.8, 2.8.1, 2.8.2, 2.9, 2.9.1, 2.9.2,
                        2.10, 2.10.0.1, 2.10.1, (2.11), (2.11.1), (2.11.2),
                        2.11.3, 2.12, 2.12.1, 2.12.2, 2.12.3, 2.12.4, 2.12.5,
                        (2.12.6), 2.12.6.1, (2.13), 2.13.1, 2.13.2, 2.14,
                        2.14.1, 2.14.2, 2.14.3, (2.15), 2.15.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant