summaryrefslogtreecommitdiff
path: root/ghc/GHCi
diff options
context:
space:
mode:
authorRoland Senn <rsx@bluewin.ch>2019-05-29 22:12:41 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-07 10:22:47 -0400
commitd1dc0ed75be0dafb0be3b4ff5e839612702eab47 (patch)
tree6dcd41b2d70b5715aa0c191c2242eaf409c1c5a7 /ghc/GHCi
parent0b7372f68c0bc9cafc30e227b574abf1d5b16df5 (diff)
downloadhaskell-d1dc0ed75be0dafb0be3b4ff5e839612702eab47.tar.gz
Fix #16700: Tiny errors in output of GHCi commands :forward and :info
`:info Coercible` now outputs the correct section number of the GHCi User's guide together with the secion title. `:forward x` gives the correct syntax hint.
Diffstat (limited to 'ghc/GHCi')
-rw-r--r--ghc/GHCi/UI.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs
index 6929ee8a32..7b64644526 100644
--- a/ghc/GHCi/UI.hs
+++ b/ghc/GHCi/UI.hs
@@ -3570,7 +3570,7 @@ forwardCmd :: GhciMonad m => String -> m ()
forwardCmd arg
| null arg = forward 1
| all isDigit arg = forward (read arg)
- | otherwise = liftIO $ putStrLn "Syntax: :back [num]"
+ | otherwise = liftIO $ putStrLn "Syntax: :forward [num]"
where
forward num = withSandboxOnly ":forward" $ do
(names, ix, pan, _) <- GHC.forward num