1{-# OPTIONS_GHC -Wall #-}
2module AST.Expression.Valid
17import qualified Data.ByteString as B
18import qualified Data.Map as Map
19import Data.Text (Text)
21import qualified AST.Binop as Binop
22import qualified AST.Expression.Source as Src
23import qualified AST.Literal as Literal
24import qualified AST.Type as Type
25import qualified Elm.Name as N
26import qualified Reporting.Annotation as A
27import qualified Reporting.Region as R
34type Expr = A.Located Expr_
38 = Literal Literal.Literal
39 | Var (Maybe N.Name) N.Name
43 | Binops [(Expr, A.Located N.Name)] Expr
44 | Lambda [Src.Pattern] Expr
46 | If [(Expr, Expr)] Expr
48 | Case Expr [(Src.Pattern, Expr)]
51 | Update (A.Located N.Name) [(A.Located N.Name, Expr)]
52 | Record [(A.Located N.Name, Expr)]
54 | Tuple Expr Expr [Expr]
55 | GLShader Text Text Literal.Shader
63 = Define R.Region (A.Located N.Name) [Src.Pattern] Expr (Maybe Type.Raw)
64 | Destruct R.Region Src.Pattern Expr
74 , _overview :: A.Located (Maybe B.ByteString)
75 , _docs :: Map.Map N.Name Text
76 , _exports :: Src.Exposing
77 , _imports :: [Src.Import]
78 , _decls :: [A.Located Decl]
86data Decl = Decl (A.Located N.Name) [Src.Pattern] Expr (Maybe Type.Raw)
87data Union = Union (A.Located N.Name) [A.Located N.Name] [(A.Located N.Name, [Type.Raw])]
88data Alias = Alias (A.Located N.Name) [A.Located N.Name] Type.Raw
89data Binop = Binop (A.Located N.Name) Binop.Associativity Binop.Precedence N.Name
95 | Manager R.Region Manager
99 = Cmd (A.Located N.Name)
100 | Sub (A.Located N.Name)
101 | Fx (A.Located N.Name) (A.Located N.Name)
104data Port = Port (A.Located N.Name) Type.Raw
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