From 7acb945d443e26c7e51850c9c51321b0a5a7978a Mon Sep 17 00:00:00 2001 From: Carrie Xu Date: Wed, 6 Oct 2021 23:02:04 +0800 Subject: Dump non-module specific info to file #20316 - Change the dumpPrefix to FilePath, and default to non-module - Add dot to seperate dump-file-prefix and suffix - Modify user guide to introduce how dump files are named - This commit does not affect Ghci dump file naming. See also #17500 --- ghc/GHCi/UI.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ghc') diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs index b628575362..3a7946bca8 100644 --- a/ghc/GHCi/UI.hs +++ b/ghc/GHCi/UI.hs @@ -1299,7 +1299,7 @@ runStmt input step = do setDumpFilePrefix :: GHC.GhcMonad m => InteractiveContext -> m () -- #17500 setDumpFilePrefix ic = do dflags <- GHC.getInteractiveDynFlags - GHC.setInteractiveDynFlags dflags { dumpPrefix = Just (modStr ++ ".") } + GHC.setInteractiveDynFlags dflags { dumpPrefix = modStr ++ "." } where modStr = moduleNameString $ moduleName $ icInteractiveModule $ ic -- cgit v1.2.1