[commit: packages/directory] improve-tests, improve-tests-for-real, master, tmp: Expose findExecutables #14 (2921280)
git at git.haskell.org
git at git.haskell.org
Thu Mar 19 11:37:16 UTC 2015
Repository : ssh://git@git.haskell.org/directory
On branches: improve-tests,improve-tests-for-real,master,tmp
Link : http://ghc.haskell.org/trac/ghc/changeset/292128071c4dee154b43f9d3a40e9113a4da6e8b/directory
>---------------------------------------------------------------
commit 292128071c4dee154b43f9d3a40e9113a4da6e8b
Author: Michael Snoyman <michael at snoyman.com>
Date: Tue Feb 17 15:53:59 2015 +0200
Expose findExecutables #14
>---------------------------------------------------------------
292128071c4dee154b43f9d3a40e9113a4da6e8b
System/Directory.hs | 3 ++-
changelog.md | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/System/Directory.hs b/System/Directory.hs
index 5e77f4d..8f9b2c1 100644
--- a/System/Directory.hs
+++ b/System/Directory.hs
@@ -46,6 +46,7 @@ module System.Directory
, canonicalizePath
, makeRelativeToCurrentDirectory
, findExecutable
+ , findExecutables
, findFile
, findFiles
, findFilesWith
@@ -755,7 +756,7 @@ 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/
+-- /Since: 1.2.2.0/
findExecutables :: String -> IO [FilePath]
findExecutables binary = do
#if defined(mingw32_HOST_OS)
diff --git a/changelog.md b/changelog.md
index ed06b47..361b37c 100644
--- a/changelog.md
+++ b/changelog.md
@@ -12,6 +12,8 @@
* Avoid stack overflow in `getDirectoryContents` [#17](https://github.com/haskell/directory/pull/17)
+ * Expose `findExecutables` [#14](https://github.com/haskell/directory/issues/14)
+
## 1.2.1.0 *Mar 2014*
* Bundled with GHC 7.8.1
More information about the ghc-commits
mailing list