Deal correctly with infix type constructors in GADT decls
[ghc-hetmet.git] / compiler / codeGen / CgProf.hs
index 1488e34..9bbf05b 100644 (file)
@@ -43,12 +43,12 @@ import MachOp
 import CmmUtils                ( zeroCLit, mkIntCLit, mkLblExpr )
 import CLabel          ( mkCCLabel, mkCCSLabel, mkRtsDataLabel )
 
-import Module          ( moduleString )
+import Module          ( pprModule )
 import Id              ( Id )
 import CostCentre
 import StgSyn          ( GenStgExpr(..), StgExpr )
 import StaticFlags     ( opt_SccProfilingOn )
-import FastString      ( FastString, mkFastString, LitString ) 
+import FastString      ( FastString )
 import Constants       -- Lots of field offsets
 import Outputable
 
@@ -292,7 +292,7 @@ emitCostCentreDecl
    -> Code
 emitCostCentreDecl cc = do 
   { label <- mkStringCLit (costCentreUserName cc)
-  ; modl  <- mkStringCLit (moduleString (cc_mod cc))
+  ; modl  <- mkStringCLit (showSDoc (pprModule (cc_mod cc)))
   ; let
      lits = [ zero,    -- StgInt ccID,
              label,    -- char *label,