projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b9fadb
)
use pathSeparator instead of '/'
author
Simon Marlow
<simonmar@microsoft.com>
Tue, 22 Jan 2008 14:09:57 +0000
(14:09 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Tue, 22 Jan 2008 14:09:57 +0000
(14:09 +0000)
compiler/basicTypes/Module.lhs
patch
|
blob
|
history
diff --git
a/compiler/basicTypes/Module.lhs
b/compiler/basicTypes/Module.lhs
index
9d60247
..
0221a1b
100644
(file)
--- a/
compiler/basicTypes/Module.lhs
+++ b/
compiler/basicTypes/Module.lhs
@@
-70,6
+70,8
@@
import FiniteMap
import UniqFM
import FastString
import Binary
import UniqFM
import FastString
import Binary
+
+import System.FilePath
\end{code}
%************************************************************************
\end{code}
%************************************************************************
@@
-178,7
+180,7
@@
mkModuleNameFS s = ModuleName s
-- Returns the string version of the module name, with dots replaced by slashes
moduleNameSlashes :: ModuleName -> String
moduleNameSlashes = dots_to_slashes . moduleNameString
-- Returns the string version of the module name, with dots replaced by slashes
moduleNameSlashes :: ModuleName -> String
moduleNameSlashes = dots_to_slashes . moduleNameString
- where dots_to_slashes = map (\c -> if c == '.' then '/' else c)
+ where dots_to_slashes = map (\c -> if c == '.' then pathSeparator else c)
\end{code}
%************************************************************************
\end{code}
%************************************************************************