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
42
+
```
43
+
44
+
#### `unsafeEventFn`
45
+
46
+
```purescript
47
+
unsafeEventFn :: forall a b. (a -> b) -> EventFn a b
48
+
```
49
+
50
+
Unsafely create an `EventFn`. This function should be avoided.
51
+
Use the helper functions specific to your platform (such as `React.Basic.DOM.Events`).
52
+
53
+
#### `handler`
54
+
55
+
```purescript
56
+
handler :: forall a. EventFn SyntheticEvent a -> (a -> Eff (react :: ReactFX) Unit) -> EventHandler
57
+
```
58
+
59
+
Create an `EventHandler`, given an `EventFn` and a callback.
60
+
61
+
For example:
62
+
63
+
```purs
64
+
input { onChange: handler targetValue
65
+
\value -> setState \_ -> { value }
66
+
}
67
+
```
68
+
69
+
#### `merge`
70
+
71
+
```purescript
72
+
merge :: forall a fns fns_list r. RowToList fns fns_list => Merge fns_list fns a r => { | fns } -> EventFn a ({ | r })
73
+
```
74
+
75
+
Merge multiple `EventFn` operations and collect their results.
class Merge (rl :: RowList) fns a r | rl -> fns, rl a -> r where
89
+
mergeImpl :: RLProxy rl -> { | fns } -> EventFn a ({ | r })
90
+
```
91
+
92
+
##### Instances
93
+
```purescript
94
+
Merge Nil () a ()
95
+
(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