haskell / haskell/cabal

Redundant allow-newer warnings

Open
#11,262 2 comments 5 reactions 0 assignees View on GitHub
cabal-install: solver re: allow-newer re: warnings type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

## Summary

When upgrading to a new version of a compiler, it's normal to add a bunch of `allow-newer`s to one's cabal.project file. Over time these grow to be redundant as packages raise their upper bounds.

I then find myself iteratively going through my cabal.project file and testing whether each of these is still needed. This is quite labour intensive.

## Suggestion

Add a warning if an `allow-newer` is no longer needed. Ideally this would point out the line in the cabal.project file where the override is specified. Then I could just react to these warnings when updating my index-state and I wouldn't have to manually check.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.