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:
ab6f788
)
Fixing directory creation to not create "" directories inside hpc report (harmless...
author
andygill@ku.edu
<unknown>
Tue, 16 Sep 2008 17:23:13 +0000
(17:23 +0000)
committer
andygill@ku.edu
<unknown>
Tue, 16 Sep 2008 17:23:13 +0000
(17:23 +0000)
utils/hpc/HpcMarkup.hs
patch
|
blob
|
history
diff --git
a/utils/hpc/HpcMarkup.hs
b/utils/hpc/HpcMarkup.hs
index
e618b25
..
df7e43b
100644
(file)
--- a/
utils/hpc/HpcMarkup.hs
+++ b/
utils/hpc/HpcMarkup.hs
@@
-17,6
+17,7
@@
import Data.List
import Data.Maybe(fromJust)
import Data.Array
import Data.Monoid
+import Control.Monad
import qualified HpcSet as Set
------------------------------------------------------------------------------
@@
-453,7
+454,8
@@
writeFileUsing filename text = do
#if __GLASGOW_HASKELL__ >= 604
-- create the dest_dir if needed
- createDirectoryIfMissing True dest_dir
+ when (not (null dest_dir)) $
+ createDirectoryIfMissing True dest_dir
#endif
writeFile filename text