Solver prefers older version of target to older version of dependency
Open
cabal-install: solver
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Trying to install `idris` together with `alex` (which will pull in `QuickCheck`) confuses the solver, as it decides to install `idris 0.9.14.2` and not `latest:0.99`. I was able to work around it by installing `alex` and `idris` separately, but I don't think the solver should do that, unless there's something wrong with `alex.cabal` or `idris.cabal`.
To reproduce, run `cabal install alex idris --dry-run`.
```
$ cabal --version
cabal-install version 1.25.0.0
compiled using version 1.25.0.0 of the Cabal library
```
Contributor guide
Assessment
This issue has not been assessed yet.