Bug fix: pathSeparator can be forward slash on Windows
authorThomas Miedema <thomasmiedema@gmail.com>
Sun, 14 Sep 2014 19:19:30 +0000 (21:19 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Fri, 24 Oct 2014 19:14:06 +0000 (21:14 +0200)
commit6ab7023fb3b8c4ee5305036684dae2d92115c1bc
treef23d12dd11fdb11aeeec80afc243722027610fe3
parentdf3f13e7353cdd9ee15e91b475c29aeb72c61c4d
Bug fix: pathSeparator can be forward slash on Windows

dropTrailingPathSeparator "/" would return "\\" on Windows, since that is the
default:

    pathSeparator = if isWindows then '\\' else '/'

The function `normalise` can be used to normalise pathSeparators in filepaths,
the function `dropTrailingPathSeparator` shouldn't do it for you.

The test now runs for both Posix as Windows.
System/FilePath/Internal.hs
changelog.md