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

Warn about deprecated packages #1518

Open
TobyGoodwin opened this issue Sep 24, 2013 · 1 comment
Open

Warn about deprecated packages #1518

TobyGoodwin opened this issue Sep 24, 2013 · 1 comment
Labels
cabal-install: other re: deprecated packages and versions Concerning handling of packages and versions deprecated on the package repository type: enhancement

Comments

@TobyGoodwin
Copy link

I just spent a painful afternoon with cabal. Yesterday I added a dependency on http-wget to my project. Somehow or other, it built at that time (otherwise I would have spotted my mistake sooner). But the next day cabal was unhappy. I was able to deduce from the error messages that http-wget was one of the things making it cross. But I had to ask on #haskell for someone to point out that http-wget is deprecated - it says that in the Synopsis. If there could be a machine-readable deprecated flag, such that cabal would have warned me the moment I added the dependency, I would have avoided that painful afternoon.
(Good news: I rewrote the code to use http-conduits, and it's all much happier now.)
As time goes by, there will be more and more packages that are not maintained and will cause grief like this.

@23Skidoo
Copy link
Member

A simple workaround is to mark each module in the package as deprecated, like the GHC manual suggests:

module Wibble {-# DEPRECATED "Use Wobble instead" #-} where

@ttuegel ttuegel changed the title Feature request: warn about deprecated packages Warn about deprecated packages Apr 23, 2015
@ttuegel ttuegel added this to the _|_ milestone Apr 23, 2015
@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
@ulysses4ever ulysses4ever removed this from the milestone Nov 23, 2024
@ulysses4ever ulysses4ever added re: deprecated packages and versions Concerning handling of packages and versions deprecated on the package repository and removed old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: other re: deprecated packages and versions Concerning handling of packages and versions deprecated on the package repository type: enhancement
Projects
None yet
Development

No branches or pull requests

6 participants