From: Simon Marlow Date: Fri, 29 Sep 2006 11:21:08 +0000 (+0000) Subject: add :edit to the release notes, and improve the docs a bit X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f3c9971d79f573293842ac1c3b50a2f6f7a1e283;p=ghc-hetmet.git add :edit to the release notes, and improve the docs a bit --- diff --git a/docs/users_guide/6.6-notes.xml b/docs/users_guide/6.6-notes.xml index aaf8ddd..55065dc 100644 --- a/docs/users_guide/6.6-notes.xml +++ b/docs/users_guide/6.6-notes.xml @@ -390,6 +390,14 @@ + GHCi now has an :edit command which pops + up an editor on the most recently loaded file, or a + specified file. See for + more information. + + + + GHCi now invokes print by default on the result of IO actions and bindings at the prompt. This is occasionally not what you want, so it can be disabled (at diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml index 76d4972..749b4d6 100644 --- a/docs/users_guide/ghci.xml +++ b/docs/users_guide/ghci.xml @@ -49,6 +49,8 @@ Prelude> :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 @@ -60,6 +62,7 @@ Prelude> :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 @@ -1022,7 +1025,8 @@ Prelude> :. cmds.ghci module if file is omitted. The editor to invoke is taken from the EDITOR environment variable, or a default editor on your system if - EDITOR is not set. + EDITOR is not set. You can change the + editor using :set editor. @@ -1193,6 +1197,16 @@ Prelude> :main foo bar + :set editor cmd + + + Sets the command used by :edit to + cmd. + + + + + :set prog prog :set prog