X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fseparate_compilation.sgml;h=45e6c9c251656a3f25101d8da56c98d7fcddf51f;hb=c732b368a1799e8dce0ad88c22a39202b3f35662;hp=1433a3e07f2408c9855111593f74c93967c512d9;hpb=8d54472ec1022cedf40f28730c0891a49fc082fc;p=ghc-hetmet.git
diff --git a/ghc/docs/users_guide/separate_compilation.sgml b/ghc/docs/users_guide/separate_compilation.sgml
index 1433a3e..45e6c9c 100644
--- a/ghc/docs/users_guide/separate_compilation.sgml
+++ b/ghc/docs/users_guide/separate_compilation.sgml
@@ -83,11 +83,21 @@
- This flag prepends a colon-separated
+ This flag appends a colon-separated
list of dirs to the “import
- directories” list. See also
- for the significance of using relative and absolute
- pathnames in the list.
+ directories” list, which initially contains a single
+ entry: ..
+
+ This list is scanned before any package directories
+ (see ) when looking for imports,
+ but note that if you have a home module with the same name
+ as a package module then this is likely to cause trouble
+ in other ways, with link errors being the least nasty
+ thing that can go wrong...
+
+ See also for the
+ significance of using relative and absolute pathnames in
+ the list.
@@ -113,19 +123,6 @@
- file
-
-
-
- The interface output may be directed to another file
- bar2/Wurble.iface with the option
- (not recommended).
- To avoid generating an interface at all, you can say
- -ohi /dev/null, for example.
-
-
-
-
@@ -367,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
@@ -439,7 +444,7 @@ ghc -M -optdep-f -optdep.depend ...
-
+ Regard <file> as
"stable"; i.e., exclude it from having dependencies on
@@ -450,12 +455,12 @@ ghc -M -optdep-f -optdep.depend ...
- same as
+ same as
-
+ Regard the colon-separated list of directories
<dirs> as containing stable,
@@ -465,25 +470,23 @@ ghc -M -optdep-f -optdep.depend ...
-
+ Regard <file> as not
"stable"; i.e., generate dependencies on it (if
any). This option is normally used in conjunction with
- the option.
+ the option.
-
+
- 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.