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:
parent
46de1956b3
commit
4a0d199406
3
Main.hs
3
Main.hs
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user