Fixed the keep temporaries thing so that it still keeps them when the compilation succeeds, not just when it dies

This commit is contained in:
Neil Brown 2008-02-27 19:58:32 +00:00
parent 46de1956b3
commit 4a0d199406

View File

@ -219,7 +219,8 @@ compileFull fn = do optsPS <- lift get
-- Finally, remove the temporary files:
tempFiles <- get
liftIO $ removeFiles tempFiles
when (not $ csKeepTemporaries optsPS) $
liftIO $ removeFiles tempFiles
where
noteFile :: Monad m => FilePath -> StateT [FilePath] m ()