[[project @ 2001-03-15 16:16:05 by simonmar]
simonmar**20010315161605
- document new ghc-pkg tool
- document source_dirs field
] {
hunk ./ghc/docs/users_guide/packages.sgml 18
- existing GHC installation.
-
-
- Listing the available packages
- packages
- listing
-
- To see what packages are currently installed, use the
- --list-packages option:
- --list-packages
-
-
-
- $ ghc --list-packages
- gmp, rts, std, lang, concurrent, data, net, posix, text, util
-
-
- Note that your GHC installation might have a slightly
- different set of packages installed.
-
- The gmp and rts
- packages are always present, and represent the multi-precision
- integer and runtime system libraries respectively. The
- std package contains the Haskell prelude.
- The rest of the packages are optional libraries.
-
-
+ existing GHC installation, using the supplied
+ ghc-pkgghc-pkg
+ tool, described in .
hunk ./ghc/docs/users_guide/packages.sgml 29
- to the command line:
+ to the GHC command line:
hunk ./ghc/docs/users_guide/packages.sgml 33
-
- -package <lib> option
+
+ -package lib option
hunk ./ghc/docs/users_guide/packages.sgml 37
- package <lib> (they still have to
+ package lib (they still have to
hunk ./ghc/docs/users_guide/packages.sgml 98
-
+
hunk ./ghc/docs/users_guide/packages.sgml 122
-
hunk ./ghc/docs/users_guide/packages.sgml 123
+
hunk ./ghc/docs/users_guide/packages.sgml 132
- directly, instead GHC provides options for adding & removing
- packages:
+ directly, instead packages can be added or removed using GHC's
+ package management tool, ghc-pkg.
hunk ./ghc/docs/users_guide/packages.sgml 136
+
+
+
+
+
+ This option displays the list of currently installed
+ packages.
+
+
+ $ ghc-pkg --list-packages
+ gmp, rts, std, lang, concurrent, data, net, posix, text, util
+
+
+ Note that your GHC installation might have a
+ slightly different set of packages installed.
+
+ The gmp and
+ rts packages are always present, and
+ represent the multi-precision integer and runtime system
+ libraries respectively. The std
+ package contains the Haskell prelude and standard
+ libraries. The rest of the packages are optional
+ libraries.
+
+
+
hunk ./ghc/docs/users_guide/packages.sgml 164
- --add-package
- option
+
+
+
hunk ./ghc/docs/users_guide/packages.sgml 176
-
- --delete-package
- option
+
+
+
+
hunk ./ghc/docs/users_guide/packages.sgml 199
+ source_dirs = [],
hunk ./ghc/docs/users_guide/packages.sgml 236
+
+
+
+ source_dirs
+ source_dirs
+ package specification
+
+ A list of directories containing Haskell source
+ files for this package. This field isn't used by GHC, but
+ could potentially be used by an all-interpreted system
+ like Hugs.
+
}