Wolfgang Jeltsch pushed to branch wip/jeltsch/module-graph-reuse-in-downsweep at Glasgow Haskell Compiler / GHC Commits: f2b9217d by Wolfgang Jeltsch at 2026-05-26T19:43:14+03:00 Make the test ensure that downsweep is really incremental - - - - - 1 changed file: - testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.hs Changes: ===================================== testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.hs ===================================== @@ -9,6 +9,7 @@ import Data.List (sort) import System.Environment (getArgs) import System.Exit (exitFailure) import System.IO (stderr) +import System.Directory (removeFile) import Language.Haskell.Syntax.Module.Name (moduleNameString) import GHC.Utils.Ppr (Mode (PageMode)) import GHC.Utils.Outputable (vcat, defaultSDocContext, printSDocLn, ppr) @@ -84,6 +85,9 @@ main = do intermediateModuleGraph <- performDownsweepTurn Nothing "A" liftIO $ outputModuleNamesInGraph intermediateModuleGraph + _ <- liftIO $ + mapM_ (((sourceDirectory ++ "/") ++) >>> (++ ".hs") >>> removeFile) + ["A", "B", "C", "D"] finalModuleGraph <- performDownsweepTurn (Just intermediateModuleGraph) "X" liftIO $ outputModuleNamesInGraph finalModuleGraph View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f2b9217d81be146903f90c1494f743c5... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f2b9217d81be146903f90c1494f743c5... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)