@@ -21,7 +21,7 @@ The `Eff` type for a computation which has asynchronous effects.
21
21
#### ` Aff `
22
22
23
23
``` purescript
24
- data Aff e a
24
+ newtype Aff e a
25
25
```
26
26
27
27
A computation with effects ` e ` . The computation either errors or
@@ -88,6 +88,14 @@ attempt :: forall e a. Aff e a -> Aff e (Either Error a)
88
88
89
89
Promotes any error to the value level of the asynchronous monad.
90
90
91
+ #### ` apathize `
92
+
93
+ ``` purescript
94
+ apathize :: forall e a. Aff e a -> Aff e Unit
95
+ ```
96
+
97
+ Ignores any errors.
98
+
91
99
#### ` liftEff' `
92
100
93
101
``` purescript
@@ -208,8 +216,91 @@ instance monadAffAff :: MonadAff e (Aff e)
208
216
209
217
210
218
219
+ ## Module Control.Monad.Aff.Par
220
+
221
+ #### ` Par `
222
+
223
+ ``` purescript
224
+ newtype Par e a
225
+ = Par (AffVar e a)
226
+ ```
227
+
228
+
229
+ #### ` runPar `
230
+
231
+ ``` purescript
232
+ runPar :: forall e a. Par e a -> AffVar e a
233
+ ```
234
+
235
+ Extracts the ` Aff ` from the ` Par ` .
236
+
237
+ #### ` semigroupPar `
238
+
239
+ ``` purescript
240
+ instance semigroupPar :: (Semigroup a) => Semigroup (Par e a)
241
+ ```
242
+
243
+
244
+ #### ` monoidPar `
245
+
246
+ ``` purescript
247
+ instance monoidPar :: (Monoid a) => Monoid (Par e a)
248
+ ```
249
+
250
+
251
+ #### ` functorPar `
252
+
253
+ ``` purescript
254
+ instance functorPar :: Functor (Par e)
255
+ ```
256
+
257
+
258
+ #### ` applyPar `
259
+
260
+ ``` purescript
261
+ instance applyPar :: Apply (Par e)
262
+ ```
263
+
264
+
265
+ #### ` applicativePar `
266
+
267
+ ``` purescript
268
+ instance applicativePar :: Applicative (Par e)
269
+ ```
270
+
271
+
272
+ #### ` altPar `
273
+
274
+ ``` purescript
275
+ instance altPar :: Alt (Par e)
276
+ ```
277
+
278
+ Returns the first value, or the first error if both error.
279
+
280
+ #### ` plusPar `
281
+
282
+ ``` purescript
283
+ instance plusPar :: Plus (Par e)
284
+ ```
285
+
286
+
287
+ #### ` alternativePar `
288
+
289
+ ``` purescript
290
+ instance alternativePar :: Alternative (Par e)
291
+ ```
292
+
293
+
294
+
211
295
## Module Control.Monad.Aff.Unsafe
212
296
297
+ #### ` unsafeTrace `
298
+
299
+ ``` purescript
300
+ unsafeTrace :: forall e a. a -> Aff e Unit
301
+ ```
302
+
303
+
213
304
#### ` unsafeInterleaveAff `
214
305
215
306
``` purescript
@@ -220,10 +311,10 @@ unsafeInterleaveAff :: forall e1 e2 a. Aff e1 a -> Aff e2 a
220
311
221
312
## Module Control.Monad.Aff.Var
222
313
223
- #### ` VarF `
314
+ #### ` VarFx `
224
315
225
316
``` purescript
226
- data VarF :: !
317
+ data VarFx :: !
227
318
```
228
319
229
320
@@ -237,7 +328,7 @@ data Var :: * -> *
237
328
#### ` AffVar `
238
329
239
330
``` purescript
240
- type AffVar e a = Aff (var :: VarF | e) a
331
+ type AffVar e a = Aff (var :: VarFx | e) a
241
332
```
242
333
243
334
@@ -249,6 +340,14 @@ makeVar :: forall e a. AffVar e (Var a)
249
340
250
341
Makes a new asynchronous variable.
251
342
343
+ #### ` makeVar' `
344
+
345
+ ``` purescript
346
+ makeVar' :: forall e a. a -> AffVar e (Var a)
347
+ ```
348
+
349
+ Makes a variable and sets it to some value.
350
+
252
351
#### ` takeVar `
253
352
254
353
``` purescript
@@ -266,6 +365,14 @@ putVar :: forall e a. Var a -> a -> AffVar e Unit
266
365
Puts a new value into the asynchronous variable. If the variable has
267
366
been killed, this will result in an error.
268
367
368
+ #### ` modifyVar `
369
+
370
+ ``` purescript
371
+ modifyVar :: forall e a. (a -> a) -> Var a -> AffVar e Unit
372
+ ```
373
+
374
+ Modifies an asynchronous variable.
375
+
269
376
#### ` killVar `
270
377
271
378
``` purescript
0 commit comments