Skip to content

Commit

Permalink
#49, add @rwbarton's intuition/example, translated to Haskell
Browse files Browse the repository at this point in the history
ndmitchell committed Dec 22, 2015
1 parent 93ad049 commit 65202e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions System/FilePath/Internal.hs
Original file line number Diff line number Diff line change
@@ -620,6 +620,8 @@ combineAlways a b | null a = b

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

0 comments on commit 65202e4

Please sign in to comment.