summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakenobu Tani <takenobu.hs@gmail.com>2019-10-13 16:49:30 +0900
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-13 19:06:40 -0400
commit27145351c106eaba666edd06025140931e42607e (patch)
treed102032dd5b8029c7cbf7ae121de12df9a108cd7
parent1eda9f283e1a715969d0cbe7ce65069c0a49b79d (diff)
downloadhaskell-27145351c106eaba666edd06025140931e42607e.tar.gz
Add GHCi help message for :def! and :: commands
-rw-r--r--ghc/GHCi/UI.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs
index 4432244dca..0d047de510 100644
--- a/ghc/GHCi/UI.hs
+++ b/ghc/GHCi/UI.hs
@@ -299,8 +299,9 @@ defFullHelpText =
" :complete <dom> [<rng>] <s> list completions for partial input string\n" ++
" :ctags[!] [<file>] create tags file <file> for Vi (default: \"tags\")\n" ++
" (!: use regex instead of line number)\n" ++
- " :def <cmd> <expr> define command :<cmd> (later defined command has\n" ++
+ " :def[!] <cmd> <expr> define command :<cmd> (later defined command has\n" ++
" precedence, ::<cmd> is always a builtin command)\n" ++
+ " (!: redefine an existing command name)\n" ++
" :doc <name> display docs for the given name (experimental)\n" ++
" :edit <file> edit file\n" ++
" :edit edit last module\n" ++
@@ -326,6 +327,7 @@ defFullHelpText =
" :type +v <expr> show the type of <expr>, with its specified tyvars\n" ++
" :unadd <module> ... remove module(s) from the current target set\n" ++
" :undef <cmd> undefine user-defined command :<cmd>\n" ++
+ " ::<cmd> run the builtin command\n" ++
" :!<command> run the shell command <command>\n" ++
"\n" ++
" -- Commands for debugging:\n" ++