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
43 | Binop Var.Canonical Expr Expr
44 | Function [String] Expr
46 | TailCall String [String] [Expr]
47 | If [(Expr, Expr)] Expr
49 | Case String (Decider Choice) [(Int, Expr)]
53 | Update Expr [(String, Expr)]
54 | Record [(String, Expr)]
55 | Cmd ModuleName.Canonical
56 | Sub ModuleName.Canonical
57 | OutgoingPort String Type.Canonical
58 | IncomingPort String Type.Canonical
59 | Program (Expr.Main Type.Canonical) Expr
60 | GLShader String String Literal.GLShaderTipe
61 | Crash ModuleName.Canonical R.Region (Maybe Expr)
67 { _testChain :: [(DT.Path, DT.Test)]
68 , _success :: Decider a
69 , _failure :: Decider a
73 , _tests :: [(DT.Test, Decider a)]
74 , _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