
On 26 July 2005 09:23, Lennart Kolmodin wrote:
When working with multiple versions of a package you often want to use the most recent version. A feature that would help for package systems is to be able to query ghc-pkg for the best version, or to list the versions in increasing version order.
Something like:
$ ghc-pkg best_version Cabal Cabal-1.1.1
$ ghc-pkg versions Cabal Cabal-1.0 Cabal-1.1.1
You get the picture. Obviously, this feature isn't critical since we could use 'ghc-pkg list' and work our way from there, but it would be nice. If you like the idea we might send you a patch. What do you think?
Sure, I'll commit a patch if you send one. Perhaps $ ghc-pkg list Cabal Cabal-1.0 Cabal-1.1.1 would be the simplest extension? Cheers, Simon