</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.
</Para>
<Para>
-It is reasonably straightforward to set up a <Filename>Makefile</Filename> to use with
-GHC, assuming you name your source files the same as your modules.
+It is reasonably straightforward to set up a <Filename>Makefile</Filename> to use with GHC, assuming you name your source files the same as your modules.
Thus:
</Para>
SRCS = Main.lhs Foo.lhs Bar.lhs
OBJS = Main.o Foo.o Bar.o
-.SUFFIXES : .o .hi .lhs .hc .s
+.SUFFIXES : .o .hs .hi .lhs .hc .s
cool_pgm : $(OBJS)
rm $@
<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>
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>
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>
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 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>
</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>
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>