Fix primMname in External Core printer
authorTim Chevalier <chevalier@alum.wellesley.edu>
Mon, 24 Mar 2008 01:43:11 +0000 (01:43 +0000)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Mon, 24 Mar 2008 01:43:11 +0000 (01:43 +0000)
 My earlier changes broke printing of function types in .hcr files.
  In other words: the z-encoding must die.

compiler/coreSyn/ExternalCore.lhs

index 49a7753..86a0d03 100644 (file)
@@ -81,7 +81,9 @@ type Qual t = (Mname,t)
 type Id = String
 
 primMname :: Mname
 type Id = String
 
 primMname :: Mname
-primMname = "base:GHC.Prim"
+-- For truly horrible reasons, this must be z-encoded.
+-- With any hope, the z-encoding will die soon.
+primMname = "ghc-prim:GHCziPrim"
 
 tcArrow :: Qual Tcon
 tcArrow = (primMname, "(->)")
 
 tcArrow :: Qual Tcon
 tcArrow = (primMname, "(->)")