Commit de3d7644 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-08-24 11:39:49 by simonmar]

- document :info
- bring up to date info about FFI support
parent 10f01216
......@@ -12,7 +12,7 @@
you're famililar with Hugs<indexterm><primary>Hugs</primary>
</indexterm>, then you'll be right at home with GHCi. However, GHCi
also has support for interactively loading compiled code, as well as
supporting all<footnote><para>except the FFI, at the moment</para>
supporting all<footnote><para>except <literal>foreign export</literal>, at the moment</para>
</footnote>the language extensions that GHC provides.</para>
<indexterm><primary>FFI</primary><secondary>GHCi support</secondary></indexterm>
<indexterm><primary>Foreign Function Interface</primary><secondary>GHCi support</secondary></indexterm>
......@@ -733,6 +733,24 @@ Prelude> :def make (\_ -> return ":! ghc --make Main")
<term><literal>:info</literal> <replaceable>name</replaceable>
<para>Displays information about the given name(s). For
example, if <replaceable>name</replaceable> is a class, then
the class methods and their types will be printed; if
<replaceable>name</replaceable> is a type constructor, then
its definition will be printed; if
<replaceable>name</replaceable> is a function, then its type
will be printed. If <replaceable>name</replaceable> has
been loaded from a source file, then GHCi will also display
the location of its definition in the source.</para>
<replaceable>module</replaceable> ...</term>
......@@ -1037,15 +1055,6 @@ Prelude> :set -fno-glasgow-exts
<term><literal>System.exit</literal> causes GHCi to exit!</term>
<para>Yes, it does.</para>
<term><literal>System.getArgs</literal> returns GHCi's command
line arguments!</term>
......@@ -1055,7 +1064,7 @@ Prelude> :set -fno-glasgow-exts
<term>The interpreter can't load modules with FFI
<term>The interpreter can't load modules with foreign export
<para>Unfortunately not. We haven't implemented it yet.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment