Add :list to ghci's :? help; fixes trac #2217
authorIan Lynagh <igloo@earth.li>
Sun, 27 Apr 2008 19:00:49 +0000 (19:00 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 27 Apr 2008 19:00:49 +0000 (19:00 +0000)
compiler/ghci/InteractiveUI.hs

index fc2f7b4..ca4a20e 100644 (file)
@@ -229,6 +229,9 @@ helpText =
  "   :force <expr>               print <expr>, forcing unevaluated parts\n" ++
  "   :forward                    go forward in the history (after :back)\n" ++
  "   :history [<n>]              after :trace, show the execution history\n" ++
+ "   :list                       show the source code around current breakpoint\n" ++
+ "   :list identifier            show the source code for <identifier>\n" ++
+ "   :list [<module>] <line>     show the source code around line number <line>\n" ++
  "   :print [<name> ...]         prints a value without forcing its computation\n" ++
  "   :sprint [<name> ...]        simplifed version of :print\n" ++
  "   :step                       single-step after stopping at a breakpoint\n"++