You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(IsSymbol l, RowCons l (EventFn a b) fns_rest fns, RowCons l b r_rest r, RowLacks l fns_rest, RowLacks l r_rest, Merge rest fns_rest a r_rest) => Merge (Cons l (EventFn a b) rest) fns a r
60
-
```
61
-
62
-
#### `handler`
63
-
64
-
```purescript
65
-
handler :: forall a. EventFn SyntheticEvent a -> (a -> Eff (react :: ReactFX) Unit) -> EventHandler
66
-
```
67
-
68
-
Create an `EventHandler`, given an `EventFn` and a callback.
69
-
70
-
For example:
71
-
72
-
```purs
73
-
input { onChange: handler targetValue
74
-
\value -> setState \_ -> { value }
75
-
}
76
-
```
77
-
78
-
#### `merge`
79
-
80
-
```purescript
81
-
merge :: forall a fns fns_list r. RowToList fns fns_list => Merge fns_list fns a r => { | fns } -> EventFn a ({ | r })
82
-
```
83
-
84
-
Merge multiple `EventFn` operations and collect their results.
@@ -205,17 +132,4 @@ timeStamp :: EventFn SyntheticEvent Number
205
132
type_ :: EventFn SyntheticEvent String
206
133
```
207
134
208
-
#### `Merge`
209
-
210
-
```purescript
211
-
class Merge (rl :: RowList) fns a r | rl -> fns, rl a -> r where
212
-
mergeImpl :: RLProxy rl -> { | fns } -> EventFn a ({ | r })
213
-
```
214
-
215
-
##### Instances
216
-
```purescript
217
-
Merge Nil () a ()
218
-
(IsSymbol l, RowCons l (EventFn a b) fns_rest fns, RowCons l b r_rest r, RowLacks l fns_rest, RowLacks l r_rest, Merge rest fns_rest a r_rest) => Merge (Cons l (EventFn a b) rest) fns a r
(IsSymbol l, RowCons l (EventFn a b) fns_rest fns, RowCons l b r_rest r, RowLacks l fns_rest, RowLacks l r_rest, Merge rest fns_rest a r_rest) => Merge (Cons l (EventFn a b) rest) fns a r
43
+
```
44
+
45
+
#### `handler`
46
+
47
+
```purescript
48
+
handler :: forall a. EventFn SyntheticEvent a -> (a -> Eff (react :: ReactFX) Unit) -> EventHandler
49
+
```
50
+
51
+
Create an `EventHandler`, given an `EventFn` and a callback.
52
+
53
+
For example:
54
+
55
+
```purs
56
+
input { onChange: handler targetValue
57
+
\value -> setState \_ -> { value }
58
+
}
59
+
```
60
+
61
+
#### `merge`
62
+
63
+
```purescript
64
+
merge :: forall a fns fns_list r. RowToList fns fns_list => Merge fns_list fns a r => { | fns } -> EventFn a ({ | r })
65
+
```
66
+
67
+
Merge multiple `EventFn` operations and collect their results.
class Merge (rl :: RowList) fns a r | rl -> fns, rl a -> r where
81
+
mergeImpl :: RLProxy rl -> { | fns } -> EventFn a ({ | r })
82
+
```
83
+
84
+
##### Instances
85
+
```purescript
86
+
Merge Nil () a ()
87
+
(IsSymbol l, RowCons l (EventFn a b) fns_rest fns, RowCons l b r_rest r, RowLacks l fns_rest, RowLacks l r_rest, Merge rest fns_rest a r_rest) => Merge (Cons l (EventFn a b) rest) fns a r
0 commit comments