diff options
author | Tom Smeding <tom@tomsmeding.com> | 2023-12-22 23:19:20 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2023-12-22 23:19:20 +0100 |
commit | 37acb2efba1cd159bda5d163192e2aba70c4e26b (patch) | |
tree | 7b77bb3bc18c5e2adc1f50b2988bd80d791329e8 /src/AST.hs | |
parent | 2872a9a18519d41e110c5cea36172935b64edfde (diff) |
Stuff
Diffstat (limited to 'src/AST.hs')
-rw-r--r-- | src/AST.hs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -22,6 +22,8 @@ data Term | TIMax Term Term -- ^ Maximum of two levels | TISucc Term -- ^ Level + 1 + | TAnnot (OfType Term Term) -- ^ term : type + -- Temporary stuff until we have proper inductive types: | TOne -- ^ The unit type | TUnit -- ^ The element of the unit type @@ -31,4 +33,11 @@ data Term | TProj2 Term -- ^ Second projection of a dependent pair deriving (Show) +data Definition = Definition Name (OfType Term Term) + deriving (Show) + type Env = Map Name Term + +data OfType a b = a :| b + deriving (Show) +infix 1 :| |