Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
56d32568
Commit
56d32568
authored
Feb 10, 2016
by
Andrey Mokhov
Browse files
Unify paths.
parent
05e72426
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Oracles/WindowsPath.hs
View file @
56d32568
...
@@ -34,7 +34,7 @@ windowsPathOracle :: Rules ()
...
@@ -34,7 +34,7 @@ windowsPathOracle :: Rules ()
windowsPathOracle
=
do
windowsPathOracle
=
do
answer
<-
newCache
$
\
path
->
do
answer
<-
newCache
$
\
path
->
do
Stdout
out
<-
quietly
$
cmd
[
"cygpath"
,
"-m"
,
path
]
Stdout
out
<-
quietly
$
cmd
[
"cygpath"
,
"-m"
,
path
]
let
windowsPath
=
dropWhileEnd
isSpace
out
let
windowsPath
=
unifyPath
$
dropWhileEnd
isSpace
out
putOracle
$
"Windows path mapping: "
++
path
++
" => "
++
windowsPath
putOracle
$
"Windows path mapping: "
++
path
++
" => "
++
windowsPath
return
windowsPath
return
windowsPath
_
<-
addOracle
$
\
(
WindowsPath
query
)
->
answer
query
_
<-
addOracle
$
\
(
WindowsPath
query
)
->
answer
query
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment