[commit: packages/directory] Mistuke-bump-win32-version-bounds, bgamari-patch-1, master: Add missing "since" annotations (b392965)
git at git.haskell.org
git at git.haskell.org
Mon Apr 17 21:34:23 UTC 2017
- Previous message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, develop-0.6, develop-0.6-questionable, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394, zip-devel: Provide default MIN_VERSION_base if not available. (0762786)
- Next message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, develop-0.6, develop-0.6-questionable, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394, zip-devel: Remove RoleAnnotations extension from containers.cabal. (1d555a4)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Repository : ssh://git@git.haskell.org/directory
On branches: Mistuke-bump-win32-version-bounds,bgamari-patch-1,master
Link : http://ghc.haskell.org/trac/ghc/changeset/b3929651dab11a505cb7c056d1c18d79d70638c7/directory
>---------------------------------------------------------------
commit b3929651dab11a505cb7c056d1c18d79d70638c7
Author: Phil Ruffwind <rf at rufflewind.com>
Date: Thu Sep 8 15:49:29 2016 -0400
Add missing "since" annotations
https://github.com/haskell/directory/commit/1ec1ea8e4210d55d8d6e0e5fc8dd543340004b92#commitcomment-18942758
>---------------------------------------------------------------
b3929651dab11a505cb7c056d1c18d79d70638c7
System/Directory.hs | 7 +++++++
changelog.md | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/System/Directory.hs b/System/Directory.hs
index 2d519f1..2646bde 100644
--- a/System/Directory.hs
+++ b/System/Directory.hs
@@ -578,6 +578,8 @@ removeContentsRecursive path =
-- files marked as read-only or otherwise made unremovable due to permissions.
-- As a result, if the removal is incomplete, the permissions or attributes on
-- the remaining files may be altered.
+--
+-- @since 1.2.7.0
removePathForcibly :: FilePath -> IO ()
removePathForcibly path =
(`ioeSetLocation` "removePathForcibly") `modifyIOError` do
@@ -814,6 +816,7 @@ renameFile opath npath = (`ioeSetLocation` "renameFile") `modifyIOError` do
-- parent segments in the destination path is not a directory.
-- @[ENOTDIR, EISDIR, EINVAL, EEXIST, ENOTEMPTY]@
--
+-- @since 1.2.7.0
renamePath :: FilePath -- ^ Old path
-> FilePath -- ^ New path
-> IO ()
@@ -1395,6 +1398,8 @@ withCurrentDirectory dir action =
action
-- | Obtain the size of a file in bytes.
+--
+-- @since 1.2.7.0
getFileSize :: FilePath -> IO Integer
getFileSize path =
(`ioeSetLocation` "getFileSize") `modifyIOError` do
@@ -1407,6 +1412,8 @@ getFileSize path =
-- | Test whether the given path points to an existing filesystem object. If
-- the user lacks necessary permissions to search the parent directories, this
-- function may return false even if the file does actually exist.
+--
+-- @since 1.2.7.0
doesPathExist :: FilePath -> IO Bool
doesPathExist path =
#ifdef mingw32_HOST_OS
diff --git a/changelog.md b/changelog.md
index 41f6b36..ea31890 100644
--- a/changelog.md
+++ b/changelog.md
@@ -41,7 +41,7 @@ Changelog for the [`directory`][1] package
* Add `findFileWith`
- * Add `copyFileWithAttrs`, which copies additional metadata
+ * Add `copyFileWithMetadata`, which copies additional metadata
([#40](https://github.com/haskell/directory/issues/40))
* Improve error message of `removeDirectoryRecursive` when used on a
- Previous message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, develop-0.6, develop-0.6-questionable, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394, zip-devel: Provide default MIN_VERSION_base if not available. (0762786)
- Next message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, develop-0.6, develop-0.6-questionable, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394, zip-devel: Remove RoleAnnotations extension from containers.cabal. (1d555a4)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ghc-commits
mailing list