Here's a demonstration on Linux:
λ Path x = [Path.Posix.reldir|.|]
λ x
""
λ Path x = [Path.Windows.reldir|.|]
λ x
".\\"
The root cause of the problem is that our definition of relRootFP uses the platform-dependent System.FilePath.pathSeparator:
|
-- | Normalized file path representation for the relative path root |
|
relRootFP :: FilePath |
|
relRootFP = '.' : [FilePath.pathSeparator] |
A fix should probably move relRootFP into Path.Include.
Here's a demonstration on Linux:
The root cause of the problem is that our definition of
relRootFPuses the platform-dependentSystem.FilePath.pathSeparator:path/src/Path/Internal.hs
Lines 56 to 58 in 8f9354d
A fix should probably move
relRootFPintoPath.Include.