From: Ian Lynagh Date: Fri, 13 Jul 2007 22:30:17 +0000 (+0000) Subject: Don't show the ghci :? output in the user guide X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=05db902f49dab5d7aabf67747997c9064d3b92e1 Don't show the ghci :? output in the user guide The ghci command list is now much larger than it used to be, and it tends to go out of sync with the docs anyway. --- diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml index 4119836..059b52c 100644 --- a/docs/users_guide/ghci.xml +++ b/docs/users_guide/ghci.xml @@ -34,53 +34,9 @@ Prelude> There may be a short pause while GHCi loads the prelude and - standard libraries, after which the prompt is shown. If we follow - the instructions and type :? for help, we - get: - - - Commands available from the prompt: - - <stmt> evaluate/run <stmt> - :add <filename> ... add module(s) to the current target set - :browse [*]<module> display the names defined by <module> - :cd <dir> change directory to <dir> - :def <cmd> <expr> define a command :<cmd> - :edit <file> edit file - :edit edit last module - :help, :? display this list of commands - :info [<name> ...] display information about the given names - :load <filename> ... load module(s) and their dependents - :module [+/-] [*]<mod> ... set the context for expression evaluation - :main [<arguments> ...] run the main function with the given arguments - :reload reload the current module set - - :set <option> ... set options - :set args <arg> ... set the arguments returned by System.getArgs - :set prog <progname> set the value returned by System.getProgName - :set prompt <prompt> set the prompt used in GHCi - :set editor <cmd> set the command used for :edit - - :show modules show the currently loaded modules - :show bindings show the current bindings made at the prompt - - :ctags [<file>] create tags file for Vi (default: "tags") - :etags [<file>] create tags file for Emacs (default: "TAGS") - :type <expr> show the type of <expr> - :kind <type> show the kind of <type> - :undef <cmd> undefine user-defined command :<cmd> - :unset <option> ... unset options - :quit exit GHCi - :!<command> run the shell command <command> - - Options for ':set' and ':unset': - - +r revert top-level expressions after each evaluation - +s print timing/memory stats after each evaluation - +t print type after evaluation - -<flags> most GHC command line flags can also be set here - (eg. -v2, -fglasgow-exts, etc.) - + standard libraries, after which the prompt is shown. As the banner + says, you can type :? to see the list of commands + available, and a half line description of each of them. We'll explain most of these commands as we go along. For Hugs users: many things work the same as in Hugs, so you should be