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:
0e6ff02
)
Flatten flags for ghci's :show
author
Ian Lynagh
<igloo@earth.li>
Sun, 25 Jul 2010 13:53:20 +0000
(13:53 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 25 Jul 2010 13:53:20 +0000
(13:53 +0000)
ghc/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/ghc/InteractiveUI.hs
b/ghc/InteractiveUI.hs
index
4b48c98
..
9a578df
100644
(file)
--- a/
ghc/InteractiveUI.hs
+++ b/
ghc/InteractiveUI.hs
@@
-1580,7
+1580,7
@@
optToStr RevertCAFs = "r"
-- code for `:show'
showCmd :: String -> GHCi ()
-- code for `:show'
showCmd :: String -> GHCi ()
-showCmd str = do
+showCmd str = withFlattenedDynflags $ do
st <- getGHCiState
case words str of
["args"] -> io $ putStrLn (show (args st))
st <- getGHCiState
case words str of
["args"] -> io $ putStrLn (show (args st))