From 0cce925f92d4bdd742073445e26da5378da4bf49 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 22 Oct 2001 10:48:33 +0000 Subject: [PATCH] [project @ 2001-10-22 10:48:33 by simonmar] Describe how to use path searching in GHCi. --- ghc/docs/users_guide/ghci.sgml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ghc/docs/users_guide/ghci.sgml b/ghc/docs/users_guide/ghci.sgml index 3e900c4..f8f5bbd 100644 --- a/ghc/docs/users_guide/ghci.sgml +++ b/ghc/docs/users_guide/ghci.sgml @@ -150,6 +150,21 @@ Main> fac 17 in the same directory and you can't call them all Main.hs. + The search path for finding source files is specified with + the option on the GHCi command line, like + so: +ghci -idir1:...:dirn + + or it can be set using the :set command + from within GHCi (see )Note that in + GHCi, and mode, the + option is used to specify the search path for + source files, whereas in standard + batch-compilation mode the option is used to + specify the search path for interface files, see . + One consequence of the way that GHCi follows dependencies to find modules to load is that every module must have a source file. The only exception to the rule is modules that come from @@ -942,7 +957,7 @@ Prelude> :def make (\_ -> return ":! ghc --make Main") - + Setting GHC command-line options in GHCi Normal GHC command-line options may also be set using -- 1.7.10.4