diff options
author | Simon Marlow <simonmar@microsoft.com> | 2008-01-22 14:09:57 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2008-01-22 14:09:57 +0000 |
commit | 4b01f5dedecdab28e2524f7d9adc77449f596dcc (patch) | |
tree | 3de444126183f12c8c1b9c1a566d002bd558da50 | |
parent | 8b9fadb6ff428a4edf433d291b1fe2facb6f3642 (diff) | |
download | haskell-4b01f5dedecdab28e2524f7d9adc77449f596dcc.tar.gz |
use pathSeparator instead of '/'
-rw-r--r-- | compiler/basicTypes/Module.lhs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/basicTypes/Module.lhs b/compiler/basicTypes/Module.lhs index 9d60247b55..0221a1b87f 100644 --- a/compiler/basicTypes/Module.lhs +++ b/compiler/basicTypes/Module.lhs @@ -70,6 +70,8 @@ import FiniteMap import UniqFM import FastString import Binary + +import System.FilePath \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 - 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} %************************************************************************ |