diff --git a/libraries/hpc b/libraries/hpc index da5928ccf4e369f6985ef291351d074918b88019..315b78ac8fe7b42912d2146783b0366f6b0e9503 160000 --- a/libraries/hpc +++ b/libraries/hpc @@ -1 +1 @@ -Subproject commit da5928ccf4e369f6985ef291351d074918b88019 +Subproject commit 315b78ac8fe7b42912d2146783b0366f6b0e9503 diff --git a/utils/hpc/HpcMarkup.hs b/utils/hpc/HpcMarkup.hs index 31327fc991477b5f4b6c931ab5c402bed77a3319..fb68eacef7624e1e4609de1fd2cea08041915601 100644 --- a/utils/hpc/HpcMarkup.hs +++ b/utils/hpc/HpcMarkup.hs @@ -479,15 +479,12 @@ instance Monoid ModuleSummary where writeFileUsing :: String -> String -> IO () writeFileUsing filename text = do - let dest_dir = dropWhileEndLE (\ x -> x /= '/') $ filename - -- We need to check for the dest_dir each time, because we use sub-dirs for -- packages, and a single .tix file might contain information about -- many package. -- create the dest_dir if needed - when (not (null dest_dir)) $ - createDirectoryIfMissing True dest_dir + createDirectoryIfMissing True (takeDirectory filename) writeFile filename text