diff options
Diffstat (limited to 'AST.hs')
-rw-r--r-- | AST.hs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -38,6 +38,8 @@ data RHS t data Expr t = ELit t Literal + | EVar t Name + | ECon t Name | EList t [Expr t] | ETup t [Expr t] | EApp t (Expr t) [Expr t] @@ -47,7 +49,7 @@ data Expr t | ELet t [FunDef t] (Expr t) deriving (Show) -data Literal = LInt Int | LFloat Double | LChar Char | LString String +data Literal = LInt Integer | LFloat Rational | LChar Char | LString String deriving (Show) data Operator = OAdd | OSub | OMul | ODiv | OMod | OEqu | OPow |