Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
9baef546
Commit
9baef546
authored
Nov 06, 2013
by
Mikhail Glushenkov
Browse files
Comment.
parent
b60fb2da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/Utils.hs
View file @
9baef546
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment