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.Pattern as Pattern
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 Pattern.Raw Expr
46 | If [(Expr, Expr)] Expr
48 | Case Expr [(Pattern.Raw, 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 N.Name [Pattern.Raw] Expr (Maybe Type.Raw)
64 | Destruct R.Region Pattern.Raw Expr
74 , _overview :: A.Located (Maybe B.ByteString)
75 , _docs :: Map.Map N.Name Text
76 , _exports :: Src.Exposing
77 , _imports :: [Src.Import]
86data Decl = Decl (A.Located N.Name) [Pattern.Raw] 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 | Cmd (A.Located Text)
96 | Sub (A.Located Text)
97 | Fx (A.Located Text) (A.Located Text)
100data 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