Commit 9baef546 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files


parent b60fb2da
......@@ -1092,6 +1092,7 @@ writeFileAtomic targetPath content = do
-- the same as the existing content then leave the file as is so that we do not
-- update the file's modification time.
-- NB: the file is assumed to be ASCII-encoded.
rewriteFile :: FilePath -> String -> IO ()
rewriteFile path newContent =
flip catchIO mightNotExist $ do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment