aboutsummaryrefslogtreecommitdiff
path: root/AST.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-11-25 22:41:55 +0100
committerTom Smeding <tom@tomsmeding.com>2021-11-25 22:41:55 +0100
commitd17dc556c46a43dd7c35c6bfcc7c47a23ef0caeb (patch)
tree69d69100e4189bdf174a6bffd9df8efc53e42a4c /AST.hs
parent7ebf27051c61f69d5c12a9350273df4ec20e3d86 (diff)
Some work
Diffstat (limited to 'AST.hs')
-rw-r--r--AST.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/AST.hs b/AST.hs
index f8f3624..6b327c5 100644
--- a/AST.hs
+++ b/AST.hs
@@ -11,10 +11,12 @@ newtype Name = Name String
deriving (Show)
data Type
- = TApp Name [Type]
+ = TApp Type [Type]
| TTup [Type]
| TList Type
| TFun Type Type
+ | TCon Name
+ | TVar Name
deriving (Show)
data FunEq t = FunEq Name [Pattern t] (RHS t)