Skip to content

Commit 65202e4

Browse files
committed
#49, add @rwbarton's intuition/example, translated to Haskell
1 parent 93ad049 commit 65202e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

System/FilePath/Internal.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ combineAlways a b | null a = b
620620

621621
-- | Combine two paths with a path separator.
622622
-- If the second path starts with a path separator or a drive letter, then it returns the second.
623+
-- The intention is that @setCurrentDirectory dir; readFile file@ will access the same file as
624+
-- @readFile (dir '</>' file)@.
623625
--
624626
-- > Posix: "/directory" </> "file.ext" == "/directory/file.ext"
625627
-- > Windows: "/directory" </> "file.ext" == "/directory\\file.ext"

0 commit comments

Comments
 (0)