From d1dc0ed75be0dafb0be3b4ff5e839612702eab47 Mon Sep 17 00:00:00 2001 From: Roland Senn Date: Wed, 29 May 2019 22:12:41 +0200 Subject: 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. --- ghc/GHCi/UI.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ghc/GHCi') 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 -- cgit v1.2.1