hackage-server icon indicating copy to clipboard operation
hackage-server copied to clipboard

Further hide deprecated versions in version listing

Open gbaz opened this issue 3 years ago • 4 comments

An unfortunate consequence of an accidental upload of a nightly ghc lib to hackage:

image

It would be nice if we could set hackage to make deprecated versions much more hidden -- i.e. perhaps not listed directly in that section at all, but just hidden behind a link...

gbaz avatar Jul 06 '22 16:07 gbaz

In a <del> tag maybe? A strikethrough is more noticeable than a slight change of color

fgaz avatar Jul 06 '22 16:07 fgaz

I'd prefer deprecated versions hidden behind one more link or a collapsible section on that page.

ulysses4ever avatar Jul 06 '22 16:07 ulysses4ever

Accidental upload is why e.g. cabal have changed to upload candidates by default. I'd be ok to require human click to publish packages. (amazonka monster uploads is a bit of chore to click through then, but OTOH, if mistake is made in automatic upload there, it's a major mistake).

phadej avatar Jul 06 '22 20:07 phadej

Note: solver is free to pick up deprecated packages! it's a soft preference. To "completely" prevent a package version from being used, you'd need to make a revision with unsatisfiable constraint (like base <0), but even that is not enough, as if package makes through into e.g. stackage nightly snapshot, they pin revisions, so even if a package versions is later deprecated or/and revised, it will still be in that snapshot (that's the point of snapshotting).

It would be very confusing if version doesn't appear, or is hidden.

I'm in favor of <del> or/and semantic markup, accessibility should be a top priority for sites like Hackage.

EDIT: Note that versions with unsatisfiable constraints (which are numerous) dont' have any visual clue in the version listing. They could.

phadej avatar Jul 06 '22 20:07 phadej