patch applied (cabal): Add util rewriteFile :: FilePath -> String -> IO ()

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Aug 13 15:33:49 EDT 2008


Wed Aug 13 12:20:17 PDT 2008  Duncan Coutts <duncan at haskell.org>
  * Add util rewriteFile :: FilePath -> String -> IO ()
  Write a file but only if it would have new content.
  If we would be writing the same as the existing content
  then leave the file as is so that we do not update the
  file's modification time.

    M ./Distribution/Simple/Utils.hs -1 +16

View patch online:
http://darcs.haskell.org/cabal/_darcs/patches/20080813192017-adfee-23ee7f319b6167d311d2d449636d0544960aa83c.gz



More information about the cabal-devel mailing list