From 9480e790c9d8a17ee50c8ef82150f6148dfe92fa Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 30 Apr 2001 09:46:07 +0000 Subject: [PATCH] [project @ 2001-04-30 09:46:07 by simonmar] Fix the documentation about the -i option. These are scanned left to right, but before the package directories. Also add a suitably severe warning about having a module with the same name as a package module. --- ghc/docs/users_guide/separate_compilation.sgml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/ghc/docs/users_guide/separate_compilation.sgml b/ghc/docs/users_guide/separate_compilation.sgml index 1433a3e..691701b 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. -- 1.7.10.4