bin-package-db: copy paste writeFileAtomic from Cabal
authorThomas Miedema <thomasmiedema@gmail.com>
Sat, 13 Jun 2015 14:53:28 +0000 (16:53 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Thu, 2 Jul 2015 08:27:12 +0000 (10:27 +0200)
commitbdd0b719ea5f116b160bc37a09804d3eff14ecae
treed8fa11ba5f549d058ef84ae45afe2377cdb1869d
parent9aa0e4b23d074af44363236fb0f120f07c6e0067
bin-package-db: copy paste writeFileAtomic from Cabal

renameFile on Windows calls `Win32.mOVEFILE_REPLACE_EXISTING`
nowadays, which doesn't fail when the targetPath already exists.
libraries/bin-package-db/GHC/PackageDb.hs