haskell / haskell/hackage-server

Highlight package uninstallable versions

Open
#1,324 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
467
Forks
225
PR merge metrics
No merged PRs in 30d

Description

E.g. there are issues like https://github.com/UnkindPartition/tasty/issues/426

When there is a revision like `base <0`, the hackage deprecation would only affect UI.
Let's make hackage smart enough to figure that out without a a deprecation.

As deprecation is also written to index, it's redundant information added there for no reason.

Semi-deciding out whether package has unjustifiable constraint should be easy:
- look at library components condition trees top-level
- look at build-depends
- if any version range is empty (https://hackage.haskell.org/package/Cabal-syntax-3.12.1.0/docs/Distribution-Types-VersionInterval-Legacy.html#v:asVersionIntervals), mark as uninstallable.

This information would make sense to calculate on upload and revisions.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.