on bbb2b2a help sign in
elk/compiler/SourceSyntax/Declaration.hs
15 lines 431 B history raw
1{-# LANGUAGE DeriveDataTypeable #-}
2module SourceSyntax.Declaration where
4import Data.Data
5import qualified SourceSyntax.Expression as Expr
6import Types.Types
8data Declaration
9 = Definition Expr.Def
10 | Datatype String [X] [(String,[Type])]
11 | TypeAlias String [X] Type
12 | ImportEvent String Expr.LExpr String Type
13 | ExportEvent String String Type
14 | Fixity Int String
15 deriving (Eq, Show, Data, Typeable)