fix windows code again (argh)
This commit is contained in:
parent
43d17632f6
commit
810b26e1d9
1 changed files with 1 additions and 2 deletions
|
@ -42,7 +42,7 @@ absNormPath :: FilePath -> FilePath -> Maybe FilePath
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
absNormPath dir path = MissingH.absNormPath dir path
|
absNormPath dir path = MissingH.absNormPath dir path
|
||||||
#else
|
#else
|
||||||
absNormPath dir path = MissingH.absNormPath dir path
|
absNormPath dir path = Just $ combine dir path
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{- On Windows, this converts the paths to unix-style, in order to run
|
{- On Windows, this converts the paths to unix-style, in order to run
|
||||||
|
@ -50,7 +50,6 @@ absNormPath dir path = MissingH.absNormPath dir path
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
absNormPathUnix dir path = MissingH.absNormPath dir path
|
absNormPathUnix dir path = MissingH.absNormPath dir path
|
||||||
#else
|
#else
|
||||||
absNormPathUnix dir path = Just $ combine dir path
|
|
||||||
absNormPathUnix dir path = MissingH.absNormPath (fromdos dir) (fromdos path)
|
absNormPathUnix dir path = MissingH.absNormPath (fromdos dir) (fromdos path)
|
||||||
where
|
where
|
||||||
fromdos = replace "\\" "/"
|
fromdos = replace "\\" "/"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue