summaryrefslogtreecommitdiff
path: root/compiler/deSugar/Coverage.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/deSugar/Coverage.hs')
-rw-r--r--compiler/deSugar/Coverage.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/deSugar/Coverage.hs b/compiler/deSugar/Coverage.hs
index bea0172a69..d140829544 100644
--- a/compiler/deSugar/Coverage.hs
+++ b/compiler/deSugar/Coverage.hs
@@ -49,6 +49,7 @@ import System.Directory
import Trace.Hpc.Mix
import Trace.Hpc.Util
+import qualified Data.ByteString as BS
import Data.Map (Map)
import qualified Data.Map as Map
@@ -1352,9 +1353,9 @@ hpcInitCode this_mod (HpcInfo tickCount hashNo)
where
tickboxes = ppr (mkHpcTicksLabel $ this_mod)
- module_name = hcat (map (text.charToC) $
+ module_name = hcat (map (text.charToC) $ BS.unpack $
bytesFS (moduleNameFS (Module.moduleName this_mod)))
- package_name = hcat (map (text.charToC) $
+ package_name = hcat (map (text.charToC) $ BS.unpack $
bytesFS (unitIdFS (moduleUnitId this_mod)))
full_name_str
| moduleUnitId this_mod == mainUnitId