From eb5eb646967c1c664cdc23e99aea3d5626afda97 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 22 Jan 2008 14:49:23 +0000 Subject: [PATCH] fix syntax-error output for :show --- compiler/ghci/InteractiveUI.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index 8b34e67..db1aa2a 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -1557,7 +1557,8 @@ showCmd str = do ["context"] -> showContext ["packages"] -> showPackages ["languages"] -> showLanguages - _ -> throwDyn (CmdLineError "syntax: :show [args|prog|prompt|editor|stop|modules|bindings|breaks|context]") + _ -> throwDyn (CmdLineError ("syntax: :show [ args | prog | prompt | editor | stop | modules | bindings\n"++ + " | breaks | context | packages | languages ]")) showModules :: GHCi () showModules = do -- 1.7.10.4