Plug space leaks when processing multiple files

This commit is contained in:
Vidar Holen
2022-07-27 14:25:19 -07:00
parent a30ac402eb
commit 3ce310e939
4 changed files with 7 additions and 4 deletions

View File

@@ -225,7 +225,7 @@ runFormatter sys format options files = do
f :: Status -> FilePath -> IO Status
f status file = do
newStatus <- process file `catch` handler file
return $ status `mappend` newStatus
return $! status `mappend` newStatus
handler :: FilePath -> IOException -> IO Status
handler file e = reportFailure file (show e)
reportFailure file str = do