From b6379bc101d6cb6b3f5c3ae0f5865182ed6eeac1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 30 Dec 2013 14:05:07 -0400 Subject: [PATCH] fix --- Utility/Tmp.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utility/Tmp.hs b/Utility/Tmp.hs index 8b6d342f2f..891ce50835 100644 --- a/Utility/Tmp.hs +++ b/Utility/Tmp.hs @@ -63,7 +63,7 @@ withTmpDir template a = do withTmpDirIn :: FilePath -> Template -> (FilePath -> IO a) -> IO a withTmpDirIn tmpdir template = bracket create remove where - remove d = whenM (doesDirectoryExist d) $ + remove d = whenM (doesDirectoryExist d) $ do #if mingw32_HOST_OS -- Windows will often refuse to delete a file -- after a process has just written to it and exited.