patch applied (cabal): Add writeFileAtomic to and use it everywhere in place of ordinary writeFile

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Fri Feb 22 19:03:37 EST 2008


Fri Feb 22 12:57:35 PST 2008  Duncan Coutts <duncan at haskell.org>
  * Add writeFileAtomic to and use it everywhere in place of ordinary writeFile
  It uses the renaming trick to make the write atomic.
  Not yet tested on Windows.

    M ./Distribution/PackageDescription/Parse.hs -3 +4
    M ./Distribution/Simple/Build.hs -2 +3
    M ./Distribution/Simple/Configure.hs -2 +2
    M ./Distribution/Simple/Hugs.hs -4 +5
    M ./Distribution/Simple/JHC.hs -3 +4
    M ./Distribution/Simple/PreProcess.hs -2 +2
    M ./Distribution/Simple/Register.hs -7 +8
    M ./Distribution/Simple/SetupWrapper.hs -1 +1
    M ./Distribution/Simple/SrcDist.hs -6 +6
    M ./Distribution/Simple/Utils.hs -13 +71

View patch online:

  http://darcs.haskell.org/cabal/_darcs/patches/20080222205735-adfee-18b2fd4bb8dd449ad5386774d4a4e7f71b105644.gz



More information about the cabal-devel mailing list