File tree Expand file tree Collapse file tree 1 file changed +9
-18
lines changed
lib/Language/PureScript/CoreFn Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -11,32 +11,23 @@ import Language.PureScript.PSString (PSString)
11
11
Data type for expressions and terms
12
12
-}
13
13
data Expr a
14
- = -- |
15
- -- A literal value
14
+ = -- A literal value
16
15
Literal a (Literal (Expr a ))
17
- | -- |
18
- -- A data constructor (type name, constructor name, field names)
16
+ | -- A data constructor (type name, constructor name, field names)
19
17
Constructor a (ProperName 'TypeName) (ProperName 'ConstructorName) [Ident ]
20
- | -- |
21
- -- A record property accessor
18
+ | -- A record property accessor
22
19
Accessor a PSString (Expr a )
23
- | -- |
24
- -- Partial record update
20
+ | -- Partial record update
25
21
ObjectUpdate a (Expr a ) [(PSString , Expr a )]
26
- | -- |
27
- -- Function introduction
22
+ | -- Function introduction
28
23
Abs a Ident (Expr a )
29
- | -- |
30
- -- Function application
24
+ | -- Function application
31
25
App a (Expr a ) (Expr a )
32
- | -- |
33
- -- Variable
26
+ | -- Variable
34
27
Var a (Qualified Ident )
35
- | -- |
36
- -- A case expression
28
+ | -- A case expression
37
29
Case a [Expr a ] [CaseAlternative a ]
38
- | -- |
39
- -- A let binding
30
+ | -- A let binding
40
31
Let a [Bind a ] (Expr a )
41
32
deriving stock (Eq , Ord , Show , Functor )
42
33
You can’t perform that action at this time.
0 commit comments