haskell / haskell/cabal

UX improvement for typos in `allow-newer`

Open
#8,426 2 comments 0 reactions 0 assignees View on GitHub
attention: pr-welcome re: allow-newer type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

If I write this in my `cabal.project` file:

```
allow-newer:
http-api-data:base
, postgrseql-simple:base
```

then `cabal` doesn't complain, but it also tells me that the `base` version is Too New for `postgresql-simple`. It takes a minute to scan the text and realize my typo.

It'd be nice if `allow-newer` failed if the package name wasn't in the dependency set.

Contributor guide

Open the contributing guide

Research direction

Start with the `allow-newer` entry in the `cabal.project` example and reproduce the behavior using `cabal` with the misspelled `postgrseql-simple` package. Trace how package names are checked against the dependency set; done means an unknown package name is reported instead of producing a misleading `base` version warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.