projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed1cc5d
)
Don't exit ghci if :info is called on an undefined identifier.
author
Judah Jacobson
<judah.jacobson@gmail.com>
Wed, 24 Sep 2008 21:24:22 +0000
(21:24 +0000)
committer
Judah Jacobson
<judah.jacobson@gmail.com>
Wed, 24 Sep 2008 21:24:22 +0000
(21:24 +0000)
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
a16a5b9
..
5c94597
100644
(file)
--- a/
compiler/ghci/InteractiveUI.hs
+++ b/
compiler/ghci/InteractiveUI.hs
@@
-863,7
+863,8
@@
help _ = io (putStr helpText)
info :: String -> GHCi ()
info "" = ghcError (CmdLineError "syntax: ':i <thing-you-want-info-about>'")
-info s = do { let names = words s
+info s = handleSourceError GHC.printExceptionAndWarnings $ do
+ { let names = words s
; dflags <- getDynFlags
; let pefas = dopt Opt_PrintExplicitForalls dflags
; mapM_ (infoThing pefas) names }