Ticket #261 (new enhancement)

Opened 9 months ago

Last modified 3 months ago

Marking packages deprecated

Reported by: nibro Assigned to:
Priority: normal Milestone: HackageDB
Component: hackageDB website Version: 1.2.3.0
Severity: normal Keywords:
Cc: ndmitchell@gmail.com Difficulty: easy (<4 hours)
GHC Version: 6.8.2 Platform:

Description

There should be a way to mark a package as deprecated so it doesn't show up on the main Hackage listing.

If a newer package, with the same name, is uploaded then the older packages will in effect be defunct. But if you don't have a newer package with the same name, there is currently no way to "get rid of" packages that are no longer valid. There may be several reasons for why you would want to do this, likely most often because the contents of the package are superceded by functionality in some other package, with a different name.

Attachments

ticket-261.dpatch (14.6 kB) - added by chrycheng on 08/28/08 08:11:21.
Complete proposed patch

Change History

03/22/08 14:55:41 changed by duncan

  • owner changed.
  • difficulty changed from normal to easy (<4 hours).
  • component changed from Cabal library to HackageDB website.

It'd be easy to add a deprecated/superseded-by tag to the package tags file on hackage. Using that on the package list page and the individual package page should be reasonably straightforward. What is a good less clear is what kind of user interface to use to let people set/update that information.

I'd suggest initially not providing any UI to set the tag, so initially it'd need a hackage admin to set the tag directly.

So without a UI to set the tag this should not be too hard, so I'm marking it as such. Patches are invited.

05/22/08 12:36:48 changed by guest

  • cc set to ndmitchell@gmail.com.

05/22/08 12:38:36 changed by guest

The "Safe" package has been superseded by the "safe" package, and it would be nice to indicate the explicit upgrade path.

08/15/08 08:19:56 changed by duncan

  • milestone set to HackageDB.

08/28/08 08:11:21 changed by chrycheng

  • attachment ticket-261.dpatch added.

Complete proposed patch

08/28/08 08:55:57 changed by chrycheng

Was also thinking of whipping up a quick Haskell program to automate the task of tagging deprecated packages. Input would be list (or lines) of pairs where fst is the package to be deprecated, and snd is Nothing if the superseding package is not known.

Will this help? Or will tagging be done as deprecated pages are reported?