1{-# OPTIONS_GHC -Wall #-}
2module AST.Expression.Optimized
3 ( Def(..), Facts(..), dummyFacts
5 , Decider(..), Choice(..)
8import qualified AST.Expression.General as General
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 | Port (General.PortImpl Expr Type.Canonical)
56 | GLShader String String Literal.GLShaderTipe
57 | Crash R.Region (Maybe String)
63 { _testChain :: [(DT.Path, DT.Test)]
64 , _success :: Decider a
65 , _failure :: Decider a
69 , _tests :: [(DT.Test, Decider a)]
70 , _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