X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2FcoreSyn%2FExternalCore.lhs;h=5754f844bc203e14a940e55b95d250a8c860ac39;hb=2fbab1a0f1a017799e8f5130bdf1078060623f29;hp=2fdcf2dc064dbca9f30f9dcafd559a8ec2a9891b;hpb=de777ba42eb12b6a20e548a959b23b60179d9b57;p=ghc-hetmet.git diff --git a/compiler/coreSyn/ExternalCore.lhs b/compiler/coreSyn/ExternalCore.lhs index 2fdcf2d..5754f84 100644 --- a/compiler/coreSyn/ExternalCore.lhs +++ b/compiler/coreSyn/ExternalCore.lhs @@ -2,7 +2,6 @@ % (c) The University of Glasgow 2001-2006 % \begin{code} - module ExternalCore where @@ -11,12 +10,15 @@ data Module data Tdef = Data (Qual Tcon) [Tbind] [Cdef] - | Newtype (Qual Tcon) [Tbind] (Maybe Ty) + | Newtype (Qual Tcon) [Tbind] Axiom (Maybe Ty) data Cdef = Constr Dcon [Tbind] [Ty] | GadtConstr Dcon Ty +-- Newtype coercion +type Axiom = (Qual Tcon, Kind) + data Vdefg = Rec [Vdef] | Nonrec Vdef @@ -81,7 +83,10 @@ type Qual t = (Mname,t) type Id = String -primMname = "base:GHC.Prim" +primMname :: Mname +-- 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, "(->)")