path-io 0.1.0 → 0.1.1
raw patch · 3 files changed
+15/−10 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Path.IO: copyFile :: MonadIO m => Path b File -> Path b File -> m ()
+ Path.IO: copyFile :: MonadIO m => Path b0 File -> Path b1 File -> m ()
- Path.IO: renameDir :: MonadIO m => Path b1 Dir -> Path b2 Dir -> m ()
+ Path.IO: renameDir :: MonadIO m => Path b0 Dir -> Path b1 Dir -> m ()
- Path.IO: renameFile :: MonadIO m => Path b File -> Path b File -> m ()
+ Path.IO: renameFile :: MonadIO m => Path b0 File -> Path b1 File -> m ()
Files
- CHANGELOG.md +5/−1
- Path/IO.hs +9/−8
- path-io.cabal +1/−1
CHANGELOG.md view
@@ -1,3 +1,7 @@-# Path IO 0.1.0+## Path IO 0.1.1++* Fixed type signatures of `renameFile` and `copyFile`.++## Path IO 0.1.0 * Initial release.
Path/IO.hs view
@@ -233,8 +233,8 @@ -- @[ENOTDIR, EISDIR]@ renameDir :: MonadIO m- => Path b1 Dir -- ^ Old name- -> Path b2 Dir -- ^ New name+ => Path b0 Dir -- ^ Old name+ -> Path b1 Dir -- ^ New name -> m () renameDir = liftD2 D.renameDirectory @@ -659,8 +659,8 @@ -- @[ENOTDIR, EISDIR, EINVAL, EEXIST, ENOTEMPTY]@ renameFile :: MonadIO m- => Path b File -- ^ Original location- -> Path b File -- ^ New location+ => Path b0 File -- ^ Original location+ -> Path b1 File -- ^ New location -> m () renameFile = liftD2 D.renameFile @@ -670,8 +670,8 @@ -- @old@ are copied to @new@, if possible. copyFile :: MonadIO m- => Path b File -- ^ Original location- -> Path b File -- ^ Where to put copy+ => Path b0 File -- ^ Original location+ -> Path b1 File -- ^ Where to put copy -> m () copyFile = liftD2 D.copyFile @@ -903,11 +903,12 @@ -> m a liftD2 m a b = liftIO $ m (toFilePath a) (toFilePath b) --- | Similar to 'liftD2', but allows to pass second argument.+-- | Similar to 'liftD2', but allows to pass second argument of arbitrary+-- type. liftD2' :: MonadIO m => (FilePath -> v -> IO a) -- ^ Original action- -> Path b0 t0 -- ^ First 'Path' argument+ -> Path b t -- ^ First 'Path' argument -> v -- ^ Second argument -> m a liftD2' m a v = liftIO $ m (toFilePath a) v
path-io.cabal view
@@ -31,7 +31,7 @@ -- POSSIBILITY OF SUCH DAMAGE. name: path-io-version: 0.1.0+version: 0.1.1 cabal-version: >= 1.10 license: BSD3 license-file: LICENSE.md