packages feed

atomic-write 0.2.0.1 → 0.2.0.2

raw patch · 2 files changed

+6/−9 lines, 2 filesdep +unix-compatdep −unixPVP ok

version bump matches the API change (PVP)

Dependencies added: unix-compat

Dependencies removed: unix

API changes (from Hackage documentation)

Files

atomic-write.cabal view
@@ -1,5 +1,5 @@ name:                atomic-write-version:             0.2.0.1+version:             0.2.0.2 synopsis:            Atomically write to a file  description:@@ -30,9 +30,6 @@   .   * <https://github.com/sashka/atomicfile There is a python library for atomically updating a file>   .-  At this time Windows is not supported, however we would appreciate-  contributions to the <http://github.com/stackbuilders/atomic-write github repository>.-  .   To use `atomic-write`, import the module corresponding to the type you wish to   write atomically, e.g., to write a (strict) ByteString atomically:   .@@ -63,7 +60,7 @@    build-depends:         base >=4.5 && <4.8                        , temporary-                       , unix+                       , unix-compat                        , directory                        , filepath                        , text@@ -80,7 +77,7 @@    build-depends:       base >=4.5 && <4.8                      , temporary-                     , unix+                     , unix-compat                      , directory                      , filepath                      , text@@ -94,4 +91,4 @@  source-repository head   type:     git-  location: https://github.com/stackbuilders/atomic-file+  location: https://github.com/stackbuilders/atomic-write
src/System/AtomicWrite/Internal.hs view
@@ -1,8 +1,8 @@ module System.AtomicWrite.Internal (closeAndRename, tempFileFor) where  import System.Directory (doesFileExist, renameFile)-import System.Posix.Files (setFileMode, getFileStatus, fileMode)-import System.FilePath.Posix (takeDirectory)+import System.PosixCompat.Files (setFileMode, getFileStatus, fileMode)+import System.FilePath (takeDirectory)  import System.IO   (hClose, Handle, openTempFile, openTempFileWithDefaultPermissions)