fix build
authorJoey Hess <joeyh@joeyh.name>
Wed, 2 Sep 2020 18:59:22 +0000 (14:59 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 2 Sep 2020 18:59:22 +0000 (14:59 -0400)
Utility/Tmp.hs

index 97a4926a6dcd84fea1070d135a1f6ae842f385fc..4d46c69140ab62736d99c5ab08498941290668d2 100644 (file)
@@ -52,7 +52,7 @@ viaTmp a file content = bracketIO setup cleanup use
                -- not as a temp file. (This may fail on some filesystems
                -- that don't support file modes well, so ignore
                -- exceptions.)
-               void $ tryIO $ setFileMode tmpfile =<< defaultFileMode
+               _ <- liftIO $ tryIO $ setFileMode tmpfile =<< defaultFileMode
                liftIO $ hClose h
                a tmpfile content
                liftIO $ rename tmpfile file