projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inline has moved to GHC.Magic
[ghc-hetmet.git]
/
utils
/
hpc
/
HpcMarkup.hs
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 Data.Maybe(fromJust)
import Data.Array
import Data.Monoid
+import Control.Monad
import qualified HpcSet as Set
------------------------------------------------------------------------------
import qualified HpcSet as Set
------------------------------------------------------------------------------
@@
-453,7
+454,8
@@
writeFileUsing filename text = do
#if __GLASGOW_HASKELL__ >= 604
-- create the dest_dir if needed
#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
#endif
writeFile filename text