2 % (c) The University of Glasgow 2001
6 module ExternalCore where
10 = Module Mname [Tdef] [Vdefg]
13 = Data (Qual Tcon) [Tbind] [Cdef]
14 | Newtype (Qual Tcon) [Tbind] (Maybe Ty)
17 = Constr Dcon [Tbind] [Ty]
24 type Vdef = (Var,Ty,Exp) -- Top level bindings are unqualified now
34 | Case Exp Vbind Ty [Alt] {- non-empty list -}
44 = Acon (Qual Dcon) [Tbind] [Vbind] Exp
49 type Tbind = (Tvar,Kind)
65 | Lrational Rational Ty
76 type Qual t = (Mname,t)
80 primMname = "GHCziPrim"
83 tcArrow = (primMname, "ZLzmzgZR")