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:
cd70fa7
)
[project @ 2005-05-17 09:46:22 by simonmar]
author
simonmar
<unknown>
Tue, 17 May 2005 09:46:22 +0000
(09:46 +0000)
committer
simonmar
<unknown>
Tue, 17 May 2005 09:46:22 +0000
(09:46 +0000)
replaceFilenameSuffix: fix
ghc/compiler/utils/Util.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/utils/Util.lhs
b/ghc/compiler/utils/Util.lhs
index
9725f42
..
a19d2e7
100644
(file)
--- a/
ghc/compiler/utils/Util.lhs
+++ b/
ghc/compiler/utils/Util.lhs
@@
-917,7
+917,7
@@
splitLongestPrefix s pred
where (suf,pre) = break pred (reverse s)
replaceFilenameSuffix :: FilePath -> Suffix -> FilePath
-replaceFilenameSuffix s suf = removeSuffix '.' s ++ suf
+replaceFilenameSuffix s suf = removeSuffix '.' s ++ '.':suf
-- directoryOf strips the filename off the input string, returning
-- the directory.