[commit: packages/directory] master: Bump to version 1.2.1.0 and add missing /Since/-annotations (68f85c8)
git at git.haskell.org
git at git.haskell.org
Fri Mar 21 22:09:45 UTC 2014
Repository : ssh://git@git.haskell.org/directory
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/68f85c8b2b3553fe36f0b8783574cdd7201209e4/directory
>---------------------------------------------------------------
commit 68f85c8b2b3553fe36f0b8783574cdd7201209e4
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Fri Mar 21 23:03:49 2014 +0100
Bump to version 1.2.1.0 and add missing /Since/-annotations
The /Since/-annotations and version bump are
due to newly exported symbols (added via 7789d1cc)
Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
>---------------------------------------------------------------
68f85c8b2b3553fe36f0b8783574cdd7201209e4
System/Directory.hs | 6 ++++++
directory.cabal | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/System/Directory.hs b/System/Directory.hs
index ab035d8..739892c 100644
--- a/System/Directory.hs
+++ b/System/Directory.hs
@@ -757,6 +757,8 @@ findExecutable fileName = do
-- | Given a file name, searches for the file and returns a list of all
-- occurences that are executable.
+--
+-- /Since: 1.2.1.0/
findExecutables :: String -> IO [FilePath]
findExecutables binary = do
#if defined(mingw32_HOST_OS)
@@ -779,12 +781,16 @@ findFile path fileName = do
-- | Search through the given set of directories for the given file and
-- returns a list of paths where the given file exists.
+--
+-- /Since: 1.2.1.0/
findFiles :: [FilePath] -> String -> IO [FilePath]
findFiles = findFilesWith (\_ -> return True)
-- | Search through the given set of directories for the given file and
-- with the given property (usually permissions) and returns a list of
-- paths where the given file exists and has the property.
+--
+-- /Since: 1.2.1.0/
findFilesWith :: (FilePath -> IO Bool) -> [FilePath] -> String -> IO [FilePath]
findFilesWith _ [] _ = return []
findFilesWith f (d:ds) fileName = do
diff --git a/directory.cabal b/directory.cabal
index c4dc921..cce1aa2 100644
--- a/directory.cabal
+++ b/directory.cabal
@@ -1,5 +1,5 @@
name: directory
-version: 1.2.0.2
+version: 1.2.1.0
-- GHC 7.6.3 released with 1.2.0.1
license: BSD3
license-file: LICENSE
More information about the ghc-commits
mailing list