[commit: packages/filepath] master: #49, document the specific case requested in the ticket (df048ab)

git at git.haskell.org git at git.haskell.org
Mon Dec 28 20:39:48 UTC 2015


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

On branch  : master
Link       : http://git.haskell.org/packages/filepath.git/commitdiff/df048ab322f76a7eba0f9fa003ae1df6d00917d1

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

commit df048ab322f76a7eba0f9fa003ae1df6d00917d1
Author: Neil Mitchell <ndmitchell at gmail.com>
Date:   Tue Dec 22 08:18:12 2015 +0000

    #49, document the specific case requested in the ticket


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

df048ab322f76a7eba0f9fa003ae1df6d00917d1
 System/FilePath/Internal.hs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/System/FilePath/Internal.hs b/System/FilePath/Internal.hs
index eb27e03..fa0b521 100644
--- a/System/FilePath/Internal.hs
+++ b/System/FilePath/Internal.hs
@@ -623,6 +623,7 @@ combineAlways a b | null a = b
 --
 -- > Posix:   "/directory" </> "file.ext" == "/directory/file.ext"
 -- > Windows: "/directory" </> "file.ext" == "/directory\\file.ext"
+-- >          "directory" </> "/file.ext" == "/file.ext"
 -- > Valid x => combine (takeDirectory x) (takeFileName x) `equalFilePath` x
 --
 --   Combined:



More information about the ghc-commits mailing list