File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
module React where
2
2
3
+ import Debug.Trace
3
4
import Control.Monad.Eff
4
5
5
6
foreign import data DOM :: !
@@ -24,13 +25,15 @@ module React where
24
25
25
26
type ReadProps eff props result = Eff (
26
27
p :: ReadPropsEff props ,
27
- dom :: DOM
28
+ dom :: DOM ,
29
+ trace :: Trace
28
30
) result
29
31
30
32
type ReadState eff props state result = Eff (
31
33
p :: ReadPropsEff props ,
32
34
r :: ReadStateEff state ,
33
- dom :: DOM
35
+ dom :: DOM ,
36
+ trace :: Trace
34
37
) result
35
38
36
39
type ReadWriteState eff props state result = Eff (
@@ -42,14 +45,16 @@ module React where
42
45
43
46
type Render props state = Eff (
44
47
p :: ReadPropsEff props ,
45
- r :: ReadStateEff state
48
+ r :: ReadStateEff state ,
49
+ trace :: Trace
46
50
) UI
47
51
48
52
type ShouldComponentUpdate props state =
49
53
props -> state -> Eff (
50
54
p :: ReadPropsEff props ,
51
55
r :: ReadStateEff state ,
52
- w :: WriteStateEff state
56
+ w :: WriteStateEff state ,
57
+ trace :: Trace
53
58
) Boolean
54
59
55
60
type UISpec eff props state =
You can’t perform that action at this time.
0 commit comments