[commit: packages/directory] master: findFile et al: ignore dirs when abs path is given (1adba7a)

git at git.haskell.org git at git.haskell.org
Mon Apr 17 21:35:24 UTC 2017


Repository : ssh://git@git.haskell.org/directory

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1adba7a37c448f0275e92c21c69916b0ac2c0bc4/directory

>---------------------------------------------------------------

commit 1adba7a37c448f0275e92c21c69916b0ac2c0bc4
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Tue Feb 28 01:22:41 2017 -0500

    findFile et al: ignore dirs when abs path is given
    
    When an absolute path is given, the list of search directories is now
    completely ignored by findFile.  Previously, if the list was empty,
    findFile would always fail regardless of whether the absolute path was
    found.
    
    This behavior extends to similar functions as well.
    
    Fixes #72.


>---------------------------------------------------------------

1adba7a37c448f0275e92c21c69916b0ac2c0bc4
 System/Directory.hs  | 193 ++++++++++++++++++++++++++++++++-------------------
 changelog.md         |   7 ++
 directory.cabal      |   2 +-
 tests/FindFile001.hs |  45 +++++++++++-
 4 files changed, 174 insertions(+), 73 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 1adba7a37c448f0275e92c21c69916b0ac2c0bc4


More information about the ghc-commits mailing list