summaryrefslogtreecommitdiff
path: root/utils/hpc/HpcDraft.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-11-04 18:39:46 -0400
committerBen Gamari <ben@smart-cactus.org>2021-11-05 14:26:32 -0400
commit8be05be5b3215b4666253baf3afd2a3b8a27a0cc (patch)
treee516cc49ea12f8a39b315327946faef80f40b95b /utils/hpc/HpcDraft.hs
parent004e86c38b8ba9380bfc58341d04d11f73b53a1a (diff)
downloadhaskell-wip/coverage.tar.gz
hpc: Use IntMap rather than Listwip/coverage
Diffstat (limited to 'utils/hpc/HpcDraft.hs')
-rw-r--r--utils/hpc/HpcDraft.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/hpc/HpcDraft.hs b/utils/hpc/HpcDraft.hs
index cdd1728f65..ac866d5043 100644
--- a/utils/hpc/HpcDraft.hs
+++ b/utils/hpc/HpcDraft.hs
@@ -48,7 +48,7 @@ draft_main hpcflags (progName:mods) = do
Just (Tix tickCounts) -> do
outs <- sequence
[ makeDraft hpcflags1 tixModule
- | tixModule@(TixModule m _ _ _) <- tickCounts
+ | tixModule@(TixModule m _ _) <- tickCounts
, allowModule hpcflags1 m
]
case outputFile hpcflags1 of
@@ -60,7 +60,7 @@ draft_main hpcflags (progName:mods) = do
makeDraft :: Flags -> TixModule -> IO String
makeDraft hpcflags tix = do
let modu = tixModuleName tix
- tixs = tixModuleTixs tix
+ tixs = tickCountsToList $ tixModuleTixs tix
(Mix filepath _ _ _ entries) <- readMixWithFlags hpcflags (Right tix)