1{-# OPTIONS_GHC -Wall #-}
2module AST.Expression.Optimized
3 ( Def(..), Facts(..), dummyFacts
5 , Decider(..), Choice(..)
8import qualified AST.Expression.General as Expr
9import qualified AST.Literal as Literal
10import qualified AST.Module.Name as ModuleName
11import qualified AST.Type as Type
12import qualified AST.Variable as Var
13import qualified Optimize.DecisionTree as DT
14import qualified Reporting.Region as R
21 = Def Facts String Expr
22 | TailDef Facts String [String] Expr
26 { home :: Maybe ModuleName.Canonical
27 , dependencies :: [Var.TopLevel]
39 = Literal Literal.Literal
42 | Binop Var.Canonical Expr Expr
43 | Function [String] Expr
45 | TailCall String [String] [Expr]
46 | If [(Expr, Expr)] Expr
48 | Case String (Decider Choice) [(Int, Expr)]
52 | Update Expr [(String, Expr)]
53 | Record [(String, Expr)]
54 | Cmd ModuleName.Canonical
55 | Sub ModuleName.Canonical
56 | OutgoingPort String Type.Canonical
57 | IncomingPort String Type.Canonical
58 | Program (Expr.Main Type.Canonical) Expr
59 | GLShader String String Literal.GLShaderTipe
60 | Crash ModuleName.Canonical R.Region (Maybe Expr)
66 { _testChain :: [(DT.Path, DT.Test)]
67 , _success :: Decider a
68 , _failure :: Decider a
72 , _tests :: [(DT.Test, Decider a)]
73 , _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