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
52 | VarGlobal ModuleName.Canonical Text
54 | Binop ModuleName.Canonical Text Expr Expr
55 | Function [Text] Expr
57 | TailCall Text [Text] [Expr]
58 | If [(Expr, Expr)] Expr
59 | Let [(Text, Def)] Expr
60 | Case Text (Decider Choice) [(Int, Expr)]
64 | Update Expr [(Text, Expr)]
65 | Record [(Text, Expr)]
66 | Cmd ModuleName.Canonical Effects.ManagerType
67 | Sub ModuleName.Canonical Effects.ManagerType
68 | OutgoingPort Text Type.Canonical
69 | IncomingPort Text Type.Canonical
70 | Program Can.Main Expr
72 | Crash ModuleName.Canonical R.Region (Maybe Expr)
78 { _testChain :: [(DT.Path, DT.Test)]
79 , _success :: Decider a
80 , _failure :: Decider a
84 , _tests :: [(DT.Test, Decider a)]
85 , _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