From: simonmar Date: Wed, 3 Aug 2005 09:43:06 +0000 (+0000) Subject: [project @ 2005-08-03 09:43:06 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~267 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5cc19c6af5f38f0d0945ad8e9b5e71cb568afa2f;p=ghc-hetmet.git [project @ 2005-08-03 09:43:06 by simonmar] Update documentation for ghc-pkg list and ghc-pkg latest. --- diff --git a/ghc/docs/users_guide/packages.xml b/ghc/docs/users_guide/packages.xml index ec02935..c4a5352 100644 --- a/ghc/docs/users_guide/packages.xml +++ b/ghc/docs/users_guide/packages.xml @@ -371,11 +371,12 @@ exposed-modules: Network.BSD, The ghc-pkg program may be run in the ways listed below. Where a package name is required, the package can be named in full including the version number - (e.g. network-1.0), or without the version number if - there is only a single version of that package installed. Additionally, - the version may be given as *, which means “all - versions”. For example, ghc-pkg hide network-* - would hide all versions of the network package. + (e.g. network-1.0), or without the version number. + Naming a package without the version number matches all versions of the + package; the specified action will be applied to all the matching + packages. A package specifier that matches all version of the package + can also be written pkg-*, + to make it clearer that multiple packages are being matched. @@ -426,7 +427,7 @@ exposed-modules: Network.BSD, - ghc-pkg list + ghc-pkg list [P] [] This option displays the currently installed packages, for each of the databases known to @@ -438,6 +439,24 @@ exposed-modules: Network.BSD, Hidden packages (those for which the exposed flag is False) are shown in parentheses in the list of packages. + + If an optional package identifier P + is given, then only packages matching that identifier are + shown. + + If the option is given, then + the packages are listed on a single line separated by spaces, and + the database names are not included. This is intended to make it + easier to parse the output of ghc-pkg list using + a script. + + + + + ghc-pkg latest P + + Prints the latest available version of package + P.