[commit: packages/filepath] master: Make splitFileName quickcheck test Posix only (0dd40ad)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 11:33:59 UTC 2015


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

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

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

commit 0dd40adf8d4a8a3f409f3a877dba2ae7e98a5c5b
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Thu Oct 23 19:41:19 2014 +0200

    Make splitFileName quickcheck test Posix only
    
    See Github #14.


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

0dd40adf8d4a8a3f409f3a877dba2ae7e98a5c5b
 System/FilePath/Internal.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/System/FilePath/Internal.hs b/System/FilePath/Internal.hs
index e8cf9a4..f85e635 100644
--- a/System/FilePath/Internal.hs
+++ b/System/FilePath/Internal.hs
@@ -432,7 +432,7 @@ isDrive = null . dropDrive
 -- | Split a filename into directory and file. 'combine' is the inverse.
 --
 -- > Valid x => uncurry (</>) (splitFileName x) == x || fst (splitFileName x) == "./"
--- > Valid x => isValid (fst (splitFileName x))
+-- > Posix:   Valid x => isValid (fst (splitFileName x))
 -- > splitFileName "file/bob.txt" == ("file/", "bob.txt")
 -- > splitFileName "file/" == ("file/", "")
 -- > splitFileName "bob" == ("./", "bob")



More information about the ghc-commits mailing list