TyInt -> TyCon "Int#"
This commit is contained in:
@@ -7,6 +7,7 @@ Description : Core ASTs and the like
|
|||||||
module Core.Syntax
|
module Core.Syntax
|
||||||
( Expr(..)
|
( Expr(..)
|
||||||
, Type(..)
|
, Type(..)
|
||||||
|
, pattern TyInt
|
||||||
, Lit(..)
|
, Lit(..)
|
||||||
, pattern (:$)
|
, pattern (:$)
|
||||||
, pattern (:@)
|
, pattern (:@)
|
||||||
@@ -54,14 +55,14 @@ data Expr b = Var Name
|
|||||||
|
|
||||||
deriving instance (Eq b) => Eq (Expr b)
|
deriving instance (Eq b) => Eq (Expr b)
|
||||||
|
|
||||||
data Type = TyInt
|
data Type = TyFun
|
||||||
| TyFun
|
|
||||||
| TyVar Name
|
| TyVar Name
|
||||||
| TyApp Type Type
|
| TyApp Type Type
|
||||||
| TyCon Name
|
| TyCon Name
|
||||||
deriving (Show, Read, Lift, Eq)
|
deriving (Show, Read, Lift, Eq)
|
||||||
|
|
||||||
type TyCon = Name
|
pattern TyInt :: Type
|
||||||
|
pattern TyInt = TyCon "Int#"
|
||||||
|
|
||||||
infixl 2 :$
|
infixl 2 :$
|
||||||
pattern (:$) :: Expr b -> Expr b -> Expr b
|
pattern (:$) :: Expr b -> Expr b -> Expr b
|
||||||
|
|||||||
Reference in New Issue
Block a user