1{-# OPTIONS_GHC -Wall #-}
2module AST.Expression.Optimized
6 , Decider(..), Choice(..)
11import qualified Data.Set as Set
12import Data.Text (Text)
14import qualified AST.Effects as Effects
15import qualified AST.Expression.Canonical as Can
16import qualified AST.Literal as Literal
17import qualified AST.Module.Name as ModuleName
18import qualified AST.Type as Type
19import qualified AST.Variable as Var
20import qualified Optimize.DecisionTree as DT
21import qualified Reporting.Region as R
25-- TOP LEVEL DECLARATIONS
30 { _deps :: Set.Set Var.Global
31 , _effects :: Maybe Effects.ManagerType
50 = Literal Literal.Literal
53 | Binop Var.Canonical Expr Expr
54 | Function [Text] Expr
56 | TailCall Text [Text] [Expr]
57 | If [(Expr, Expr)] Expr
58 | Let [(Text, Def)] Expr
59 | Case Text (Decider Choice) [(Int, Expr)]
63 | Update Expr [(Text, Expr)]
64 | Record [(Text, Expr)]
65 | Cmd ModuleName.Canonical Effects.ManagerType
66 | Sub ModuleName.Canonical Effects.ManagerType
67 | OutgoingPort Text Type.Canonical
68 | IncomingPort Text Type.Canonical
69 | Program Can.Main Expr
70 | GLShader Text Text Literal.Shader
71 | Crash ModuleName.Canonical R.Region (Maybe Expr)
77 { _testChain :: [(DT.Path, DT.Test)]
78 , _success :: Decider a
79 , _failure :: Decider a
83 , _tests :: [(DT.Test, Decider a)]
84 , _fallback :: Decider a
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