From 415765b5ef570295649d2e3f9d8a6a8f0dc51380 Mon Sep 17 00:00:00 2001 From: panne <unknown> Date: Thu, 22 Jun 2000 16:19:16 +0000 Subject: [PATCH] [project @ 2000-06-22 16:19:16 by panne] * -syslib => -package * mkdependHS => ghc -M *** please merge *** --- ghc/docs/users_guide/using.sgml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml index 4ba150d6f369..6df35de05158 100644 --- a/ghc/docs/users_guide/using.sgml +++ b/ghc/docs/users_guide/using.sgml @@ -827,12 +827,12 @@ country. </VarListEntry> <VarListEntry> -<Term><Option>-syslib <lib></Option></Term> +<Term><Option>-package <lib></Option></Term> <ListItem> <Para> -<IndexTerm><Primary>-syslib <lib> option</Primary></IndexTerm> +<IndexTerm><Primary>-package <lib> option</Primary></IndexTerm> If you are using a system-supplied non-Prelude library (e.g., the -POSIX library), just use a <Option>-syslib posix</Option> option (for +POSIX library), just use a <Option>-package posix</Option> option (for example). The right interface files should then be available. The accompanying HsLibs document lists the libraries available by this mechanism. @@ -1167,7 +1167,7 @@ depend : <para>Now, before you start compiling, and any time you change the <Literal>imports</Literal> in your program, do <Command>make depend</Command> before you do <Command>make - cool_pgm</Command>. <Command>GHC</Command> will append + cool_pgm</Command>. <Command>ghc -M</Command> will append the needed dependencies to your <Filename>Makefile</Filename>.</Para> @@ -1178,7 +1178,7 @@ depend : import B ...blah... </programlisting> - then <command>mkdependHS</command> will generate a dependency + then <command>ghc -M</command> will generate a dependency line of the form: <programlisting> @@ -1191,7 +1191,7 @@ A.o : B.hi import {-# SOURCE #-} B ...blah... </programlisting> - then <command>mkdependHS</command> will generate a dependency + then <command>ghc -M</command> will generate a dependency line of the form: <programlisting> @@ -1203,7 +1203,7 @@ A.o : B.hi-boot will be multiple lines with <filename>A.o</filename> as the target.</para> - <para>By default, <Command>GHC</Command> generates all the + <para>By default, <Command>ghc -M</Command> generates all the dependencies, and then concatenates them onto the end of <Filename>makefile</Filename> (or <Filename>Makefile</Filename> if <Filename>makefile</Filename> doesn't exist) bracketed by the @@ -1336,7 +1336,7 @@ ghc -M -optdep-f optdep.depend ... dependencies on the prelude modules used (including <Literal>Prelude</Literal>). This option is normally only used by the various system libraries. If a - <Option>-syslib</Option> option is used, dependencies will + <Option>-package</Option> option is used, dependencies will also be generated on the library's interfaces.</para> </listitem> </varlistentry> @@ -2310,15 +2310,15 @@ libraries automatically; these are: </ListItem> </VarListEntry> <VarListEntry> -<Term><Option>-syslib <name></Option>:</Term> +<Term><Option>-package <name></Option>:</Term> <ListItem> <Para> -<IndexTerm><Primary>-syslib <name> option</Primary></IndexTerm> +<IndexTerm><Primary>-package <name> option</Primary></IndexTerm> </Para> <Para> If you are using a Haskell “system library” (e.g., the POSIX -library), just use the <Option>-syslib posix</Option> option, and the correct code +library), just use the <Option>-package posix</Option> option, and the correct code should be linked in. </Para> </ListItem> @@ -2403,7 +2403,7 @@ GHC (as of version 4.00) supports Concurrent Haskell by default, without requiring a special option or libraries compiled in a certain way. To get access to the support libraries for Concurrent Haskell (i.e. <Literal>Concurrent</Literal> and friends), use the -<Option>-syslib concurrent</Option> option. +<Option>-package concurrent</Option> option. </Para> <Para> -- GitLab