* -syslib => -package
* mkdependHS => ghc -M
*** please merge ***
</VarListEntry>
<VarListEntry>
</VarListEntry>
<VarListEntry>
-<Term><Option>-syslib <lib></Option></Term>
+<Term><Option>-package <lib></Option></Term>
-<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
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.
example). The right interface files should then be available. The
accompanying HsLibs document lists the libraries available by this
mechanism.
<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
<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>
the needed dependencies to your
<Filename>Makefile</Filename>.</Para>
import B ...blah...
</programlisting>
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>
line of the form:
<programlisting>
import {-# SOURCE #-} B ...blah...
</programlisting>
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>
line of the form:
<programlisting>
will be multiple lines with <filename>A.o</filename> as the
target.</para>
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
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
dependencies on the prelude modules used (including
<Literal>Prelude</Literal>). This option is normally only
used by the various system libraries. If a
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>
also be generated on the library's interfaces.</para>
</listitem>
</varlistentry>
</ListItem>
</VarListEntry>
<VarListEntry>
</ListItem>
</VarListEntry>
<VarListEntry>
-<Term><Option>-syslib <name></Option>:</Term>
+<Term><Option>-package <name></Option>:</Term>
-<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
</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>
should be linked in.
</Para>
</ListItem>
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
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.