haskell/cabal — pull request #1014 by 23Skidoo (2012-08-25 22:34:09+00:00)
Title: Make 'install --dry-run' print the latest available version of a package.

Print the latest available version of a package when the solver has picked a different version for some reason. Inspired by Brent Yorgey's [highlight-versions](http://byorgey.wordpress.com/2012/08/25/identifying-outdated-packages-in-cabal-install-plans/) tool.

Example of output:

```
$ cabal install --dry-run repa
Resolving dependencies...
In order, the following would be installed (use -v for more details):
primitive-0.4.1
random-1.0.1.1
QuickCheck-2.4.2 (latest: 2.5)
vector-0.9.1
repa-3.2.1.1
```

```
$ cabal install --dry-run repa -v
Reading available packages...
Choosing modular solver.
Resolving dependencies...
In order, the following would be installed:
primitive-0.4.1 (new package)
random-1.0.1.1 (new package)
QuickCheck-2.4.2 (latest: 2.5) (new package)
vector-0.9.1 (new package)
repa-3.2.1.1 (new package)
```