Flatten flags for ghci's :show
authorIan Lynagh <igloo@earth.li>
Sun, 25 Jul 2010 13:53:20 +0000 (13:53 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 25 Jul 2010 13:53:20 +0000 (13:53 +0000)
ghc/InteractiveUI.hs

index 4b48c98..9a578df 100644 (file)
@@ -1580,7 +1580,7 @@ optToStr RevertCAFs = "r"
 -- 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))