packages feed

path-io 1.2.1 → 1.2.2

raw patch · 3 files changed

+21/−3 lines, 3 filesdep ~path-iodep ~time

Dependency ranges changed: path-io, time

Files

CHANGELOG.md view
@@ -1,3 +1,12 @@+## Path IO 1.2.2++* Fixed a bug in `setModificationTime` function that previously called+  `setAccessTime` instead of `setModificationTime` from `directory`.++* Added notes to all pieces of API that are conditional (some functions are+  only available if `directory-1.2.3.0` or later is used, now it's mentioned+  for every such function explicitely).+ ## Path IO 1.2.1  * Allowed `directory-1.3.0.0`.
Path/IO.hs view
@@ -1278,6 +1278,9 @@ -- Caveat for POSIX systems: This function returns a timestamp with -- sub-second resolution only if this package is compiled against -- @unix-2.6.0.0@ or later and the underlying filesystem supports them.+--+-- Note: this is a piece of conditional API, only available if+-- @directory-1.2.3.0@ or later is used.  getAccessTime :: MonadIO m => Path b t -> m UTCTime getAccessTime = liftD D.getAccessTime@@ -1304,6 +1307,9 @@ --   function would not be able to set timestamps with sub-second --   resolution. In this case, there would also be loss of precision in the --   modification time.+--+-- Note: this is a piece of conditional API, only available if+-- @directory-1.2.3.0@ or later is used.  setAccessTime :: MonadIO m => Path b t -> UTCTime -> m () setAccessTime = liftD2' D.setAccessTime@@ -1330,9 +1336,12 @@ --   function would not be able to set timestamps with sub-second --   resolution. In this case, there would also be loss of precision in the --   access time.+--+-- Note: this is a piece of conditional API, only available if+-- @directory-1.2.3.0@ or later is used.  setModificationTime :: MonadIO m => Path b t -> UTCTime -> m ()-setModificationTime = liftD2' D.setAccessTime+setModificationTime = liftD2' D.setModificationTime {-# INLINE setModificationTime #-} #endif 
path-io.cabal view
@@ -31,7 +31,7 @@ -- POSSIBILITY OF SUCH DAMAGE.  name:                 path-io-version:              1.2.1+version:              1.2.2 cabal-version:        >= 1.10 license:              BSD3 license-file:         LICENSE.md@@ -81,7 +81,7 @@                     , exceptions   >= 0.8     && < 0.9                     , hspec        >= 2.0     && < 3.0                     , path         >= 0.5     && < 0.6-                    , path-io      >= 1.2.1+                    , path-io      >= 1.2.2                     , unix-compat   default-language:   Haskell2010