Ticket #623 (closed enhancement: fixed)
when a package is already installed, print the version as well
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | cabal-install-0.14 |
| Component: | cabal-install tool | Version: | 1.6.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | Difficulty: | very easy (<1 hour) | |
| GHC Version: | Platform: |
Description
At the moment, when a package is already installed, cabal-install prints a message like the following:
> cabal install 'HaXml>1.3' Resolving dependencies... No packages to be installed. All the requested packages are already installed. If you want to reinstall anyway then use the --reinstall flag.
It would be helpful to print the version(s) of the requested package(s) as well.
One case where this would be useful is to help the user realise that a preferred-version entry is in effect - in the case above, the version of HaXml selected would be 1.13.3, while the latest version on hackage is 1.20.
The output could look like this:
> cabal install 'HaXml>1.3' Resolving dependencies... No packages to be installed. All the requested packages are already installed, in particular: HaXml-1.13.3 If you want to reinstall anyway then use the --reinstall flag.
Change History
Note: See
TracTickets for help on using
tickets.
