2 % (c) The University of Glasgow 2001-2006
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 = (Bool,Var,Ty,Exp) -- Top level bindings are unqualified now
34 | Case Exp Vbind Ty [Alt] {- non-empty list -}
37 | External String String Ty {- target name, convention, and type -}
38 | DynExternal String Ty {- convention and type (incl. Addr# of target as first arg) -}
46 = Acon (Qual Dcon) [Tbind] [Vbind] Exp
51 type Tbind = (Tvar,Kind)
69 | Lrational Rational Ty
80 type Qual t = (Mname,t)
84 primMname = "base:GHC.Prim"
87 tcArrow = (primMname, "(->)")