packages feed

atomic-file-ops 0.1.0.0 → 0.1.0.1

raw patch · 2 files changed

+4/−4 lines, 2 filesdep ~io-string-likePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: io-string-like

API changes (from Hackage documentation)

Files

atomic-file-ops.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: c8cbca84fbab5cba02ff397261498bcbfec3796c050709961d0f4afe9f982241+-- hash: 8cb5a7775b9e5d400eb85ebbc0b2ccd68cd9481859192799a00229b10538ce97  name:           atomic-file-ops-version:        0.1.0.0+version:        0.1.0.1 synopsis:       Functions to atomically write to files description:    See module "System.IO.AtomicFileOps" for an overview and documentation. category:       System
src/System/IO/AtomicFileOps.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE FlexibleContexts #-}  {-| Often there's no clear way to preform atomic file system writes. The usual way@@ -31,11 +32,10 @@  import System.IO.StringLike.PutStr (CanPutStr, hPutStr) import System.IO.StringLike.GetContents (CanGetContents, hGetContents)-import System.IO (openTempFile, hClose, Handle, withFile)+import System.IO (openTempFile, hClose) import System.Directory (copyPermissions, renameFile) import System.FilePath (splitFileName) import Data.Semigroup ((<>))-import System.IO.Error (catchIOError, ioError, isDoesNotExistError) import Data.Maybe (fromMaybe) import System.FileLock (withFileLock, SharedExclusive(Exclusive)) {-|