From: simonmar Date: Tue, 7 Aug 2001 10:46:57 +0000 (+0000) Subject: [project @ 2001-08-07 10:46:57 by simonmar] X-Git-Tag: Approximately_9120_patches~1340 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f5f6286f3470bc7889460b5ff7db1804f3710323;p=ghc-hetmet.git [project @ 2001-08-07 10:46:57 by simonmar] Note that you need to give the same -package options to ghc -M as you would for normal compilation. Also clarify the meaning of the (historically named) --include-prelude option. --- diff --git a/ghc/docs/users_guide/separate_compilation.sgml b/ghc/docs/users_guide/separate_compilation.sgml index 759bac9..caa2382 100644 --- a/ghc/docs/users_guide/separate_compilation.sgml +++ b/ghc/docs/users_guide/separate_compilation.sgml @@ -364,6 +364,14 @@ A.o : B.hi-boot makefile, then the old dependencies are deleted first. + Don't forget to use the same + options on the ghc -M command line as you + would when compiling; this enables the dependency generator to + locate any imported modules that come from packages. The + package modules won't be included in the dependencies + generated, though (but see the + option below). + The dependency generation phase of GHC can take some additional options, which you may find useful. For historical reasons, each option passed to the dependency generator from @@ -474,13 +482,11 @@ ghc -M -optdep-f -optdep.depend ... - Regard prelude libraries as unstable, i.e., - generate dependencies on the prelude modules used - (including Prelude). This option is - normally only used by the various system libraries. If a - option is used, dependencies - will also be generated on the library's - interfaces. + Regard modules imported from packages as unstable, + i.e., generate dependencies on the package modules used + (including Prelude, and all other + standard Haskell libraries). This option is normally + only used by the various system libraries.