X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fghci.xml;h=786815d484229e39d695f6907f66963489a1292a;hb=fcd3864f6d56ad122b48d14093a0f01fe1a90ab8;hp=cac0e117fb517d87304b277cd37545fbd6ee46fb;hpb=91314304c1886f4889c82ae5deb54adf4062e258;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/ghci.xml b/ghc/docs/users_guide/ghci.xml index cac0e11..786815d 100644 --- a/ghc/docs/users_guide/ghci.xml +++ b/ghc/docs/users_guide/ghci.xml @@ -59,11 +59,13 @@ Prelude> :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 + :show modules show the currently loaded modules :show bindings show the current bindings made at the prompt - :tags -e|-c create tags file for Vi (-c) or Emacs (-e) + :ctags [<file>] create tags file for Vi (default: "tags") + :etags [<file>] create tags file for Emacs (defauilt: "TAGS") :type <expr> show the type of <expr> :kind <type> show the kind of <type> :undef <cmd> undefine user-defined command :<cmd> @@ -707,7 +709,8 @@ Wed Mar 14 12:23:13 GMT 2001 At the GHCi prompt, the second and third rules are relaxed as follows (differences italicised): - Any of the classes Ci is standard. + All of the classes + Ci are single-parameter type classes. At least one of the classes Ci is numeric, or is Show, Eq, or Ord. @@ -1094,7 +1097,7 @@ Prelude> :. cmds.ghci :set args arg ... - :set + :set args Sets the list of arguments which are returned when the @@ -1106,7 +1109,7 @@ Prelude> :. cmds.ghci :set prog prog - :set + :set prog Sets the string to be returned when the program calls @@ -1117,6 +1120,19 @@ Prelude> :. cmds.ghci + :set prompt prompt + + + Sets the string to be used as the prompt in GHCi. + Inside prompt, the sequence + %s is replaced by the names of the + modules currently in scope, and %% is + replaced by %. + + + + + :show bindings :show bindings @@ -1138,17 +1154,21 @@ Prelude> :. cmds.ghci - :tags -c|-e - :tags + :ctags filename + :etags filename + :etags + + :etags - Generates a “tags” file for either Vi-style editors - (-c) or Emacs-style editors - (-e). The file generated will be called - tags or TAGS - respectively. - + Generates a “tags” file for Vi-style editors + (:ctags) or Emacs-style editors (etags). If + no filename is specified, the defaulit tags or + TAGS is + used, respectively. Tags for all the functions, constructors and + types in the currently loaded modules are created. All modules must + be interpreted for these commands to work. See also .