diff options
Diffstat (limited to 'AST.hs')
-rw-r--r-- | AST.hs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6,7 +6,10 @@ import Data.List.NonEmpty (NonEmpty) newtype Name = Name String deriving (Show, Eq) -data Program t = Program [FunDef t] +data Program t = Program [DataDef] [FunDef t] + deriving (Show) + +data DataDef = DataDef Name [Name] [(Name, [Type])] deriving (Show) data FunDef t = FunDef Name (Maybe Type) (NonEmpty (FunEq t)) |