[commit: packages/directory] master: Absolutize paths on Windows when possible (68837ad)

git at git.haskell.org git at git.haskell.org
Mon Apr 17 21:36:05 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/68837ad2508602bf9d5d75cdd690108a5a299ebe/directory

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

commit 68837ad2508602bf9d5d75cdd690108a5a299ebe
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Tue Mar 7 07:26:00 2017 -0500

    Absolutize paths on Windows when possible
    
    Many Windows API calls will fail if current directory + relative path
    exceeds MAX_PATH, so it's better to just use absolute paths for
    everything.
    
    This change required moving a few functions into the Common module to
    avoid recursive imports.


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

68837ad2508602bf9d5d75cdd690108a5a299ebe
 System/Directory.hs                   | 117 +++++-----------------------------
 System/Directory/Internal/Common.hs   |  97 ++++++++++++++++++++++++++++
 System/Directory/Internal/Windows.hsc |  22 ++++---
 tests/LongPaths.hs                    |  12 +++-
 4 files changed, 135 insertions(+), 113 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 68837ad2508602bf9d5d75cdd690108a5a299ebe


More information about the ghc-commits mailing list