From de3d76441c7f1366692c33027059b1a3f7999bc2 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 24 Aug 2001 11:39:49 +0000 Subject: [PATCH] [project @ 2001-08-24 11:39:49 by simonmar] - document :info - bring up to date info about FFI support --- ghc/docs/users_guide/ghci.sgml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/ghc/docs/users_guide/ghci.sgml b/ghc/docs/users_guide/ghci.sgml index 5922c2a..6c65538 100644 --- a/ghc/docs/users_guide/ghci.sgml +++ b/ghc/docs/users_guide/ghci.sgml @@ -12,7 +12,7 @@ you're famililar with HugsHugs , then you'll be right at home with GHCi. However, GHCi also has support for interactively loading compiled code, as well as - supporting allexcept the FFI, at the moment + supporting allexcept foreign export, at the moment the language extensions that GHC provides. FFIGHCi support Foreign Function InterfaceGHCi support @@ -734,6 +734,24 @@ Prelude> :def make (\_ -> return ":! ghc --make Main") + :info name + ... + :info + + + Displays information about the given name(s). For + example, if name is a class, then + the class methods and their types will be printed; if + name is a type constructor, then + its definition will be printed; if + name is a function, then its type + will be printed. If name has + been loaded from a source file, then GHCi will also display + the location of its definition in the source. + + + + :load module ... :load @@ -1038,15 +1056,6 @@ Prelude> :set -fno-glasgow-exts - System.exit causes GHCi to exit! - System.exitin - GHCi - - Yes, it does. - - - - System.getArgs returns GHCi's command line arguments! @@ -1055,7 +1064,7 @@ Prelude> :set -fno-glasgow-exts - The interpreter can't load modules with FFI + The interpreter can't load modules with foreign export declarations! Unfortunately not. We haven't implemented it yet. -- 1.7.10.4