1{-# OPTIONS_GHC -Wall #-}
2module AST.Expression.Valid
16import qualified Data.ByteString as B
17import qualified Data.Map as Map
18import Data.Text (Text)
20import qualified AST.Binop as Binop
21import qualified AST.Expression.Source as Src
22import qualified AST.Literal as Literal
23import qualified AST.Type as Type
24import qualified Elm.Name as N
25import qualified Reporting.Annotation as A
26import qualified Reporting.Region as R
33type Expr = A.Located Expr_
37 = Literal Literal.Literal
38 | Var (Maybe N.Name) N.Name
42 | Binops [(Expr, A.Located N.Name)] Expr
43 | Lambda [Src.Pattern] Expr
45 | If [(Expr, Expr)] Expr
47 | Case Expr [(Src.Pattern, Expr)]
50 | Update (A.Located N.Name) [(A.Located N.Name, Expr)]
51 | Record [(A.Located N.Name, Expr)]
53 | Tuple Expr Expr [Expr]
54 | GLShader Text Text Literal.Shader
62 = Define R.Region (A.Located N.Name) [Src.Pattern] Expr (Maybe Type.Raw)
63 | Destruct R.Region Src.Pattern Expr
73 , _overview :: A.Located (Maybe B.ByteString)
74 , _docs :: Map.Map N.Name Text
75 , _exports :: Src.Exposing
76 , _imports :: [Src.Import]
85data Decl = Decl (A.Located N.Name) [Src.Pattern] Expr (Maybe Type.Raw)
86data Union = Union (A.Located N.Name) [A.Located N.Name] [(A.Located N.Name, [Type.Raw])]
87data Alias = Alias (A.Located N.Name) [A.Located N.Name] Type.Raw
88data Binop = Binop (A.Located N.Name) Binop.Associativity Binop.Precedence N.Name
94 | Cmd (A.Located Text)
95 | Sub (A.Located Text)
96 | Fx (A.Located Text) (A.Located Text)
99data 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