From 70592f1bd7ebfdb12e17b9d1ba7de858f76ae3fc Mon Sep 17 00:00:00 2001 From: simonm Date: Mon, 2 Feb 1998 13:30:57 +0000 Subject: [PATCH] [project @ 1998-02-02 13:30:57 by simonm] add section about breaking recursion between modules. --- ghc/docs/users_guide/using.vsgml | 131 +++++++++++++++++++++++++++++++++----- 1 file changed, 114 insertions(+), 17 deletions(-) diff --git a/ghc/docs/users_guide/using.vsgml b/ghc/docs/users_guide/using.vsgml index 254eb0d..d2b35a1 100644 --- a/ghc/docs/users_guide/using.vsgml +++ b/ghc/docs/users_guide/using.vsgml @@ -457,26 +457,38 @@ In your program, you import a module @Foo@ by saying It has a builtin list of directories (notably including @.@) where it looks. -The @-i@ option-i<dirs> option prepends a -colon-separated list of @dirs@ to the ``import directories'' list. + + +@-i@-i<dirs> option This flag +prepends a colon-separated list of @dirs@ to the ``import +directories'' list. + +@-i@ resets the ``import directories'' list back to nothing. + +@-fno-implicit-prelude@ +-fno-implicit-prelude option +GHC normally imports @Prelude.hi@ files for you. If you'd rather it +didn't, then give it a @-fno-implicit-prelude@ option. You are +unlikely to get very far without a Prelude, but, hey, it's a free +country. -A plain @-i@ resets the ``import directories'' list back to nothing. +@-syslib @ +-syslib <lib> option -GHC normally imports @Prelude.hi@ files for you. If you'd rather -it didn't, then give it a @-fno-implicit-prelude@ -option-fno-implicit-prelude option. You are unlikely to get -very far without a Prelude, but, hey, it's a free country. +If you are using a system-supplied non-Prelude library (e.g., the +POSIX library), just use a @-syslib posix@ option (for example). The +right interface files should then be available. Section lists the +libraries available by this mechanism. -If you are using a system-supplied non-Prelude library (e.g., the HBC -library), just use a @-syslib hbc@-syslib <lib> option -option (for example). The right interface files should then be -available. +@-I@ +-I<dir> option Once a Haskell module has been compiled to C (@.hc@ file), you may -wish to specify where GHC tells the C compiler to look for @.h@ -files. (Or, if you are using the @-cpp@ option-cpp option, -where it tells the C pre-processor to look...) For this purpose, use -a @-I@-I<dir> option in the usual C-ish way. +wish to specify where GHC tells the C compiler to look for @.h@ files. +(Or, if you are using the @-cpp@ option-cpp option, where +it tells the C pre-processor to look...) For this purpose, use a @-I@ +option in the usual C-ish way. %************************************************************************ %* * @@ -523,8 +535,9 @@ turned off with @-fno-prune-tydecls@ and @-fno-prune-instdecls@. -fno-prune-tydecls option-fno-prune-instdecls option -See also Section , which describes how the linker -finds standard Haskell libraries. +See also Section , which describes how the linker finds standard +Haskell libraries. %************************************************************************ %* * @@ -671,6 +684,90 @@ again, it may take multiple iterations to ``settle.'' %************************************************************************ %* * +How to compile mutually recursive modules +