1{-# OPTIONS_GHC -Wall #-}
2module AST.Declaration where
6import qualified AST.Expression.Source as Source
7import qualified AST.Expression.Valid as Valid
8import qualified AST.Expression.Canonical as Canonical
9import qualified AST.Type as Type
10import qualified Reporting.Annotation as A
17data Decl def tipe expr
19 | Union String [String] [(String, [tipe])]
20 | Alias String [String] tipe
21 | Fixity Assoc Int String
29 CommentOr (A.Located Source')
33 Decl Source.Def Type.Raw Source.Expr
41 Decl Valid.Def Type.Raw Valid.Expr
45 A.Commented (Decl Canonical.Def Type.Canonical Canonical.Expr)
53 = Comment (A.Located String)
65assocToString :: Assoc -> String
82instance Binary Assoc where
89 _ -> error "Error reading valid associativity from serialized string"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list