|
75 | 75 | removeAll :: forall e. Cache -> CacheEff e Unit |
76 | 76 |
|
77 | 77 |
|
| 78 | +## Module Angular.Deferred |
| 79 | + |
| 80 | +### Types |
| 81 | + |
| 82 | + data Deferred :: * -> * -> * |
| 83 | + |
| 84 | + type DeferredEff e r = Eff (ngdeferred :: NgDeferred | e) r |
| 85 | + |
| 86 | + data NgDeferred :: ! |
| 87 | + |
| 88 | + |
| 89 | +### Values |
| 90 | + |
| 91 | + notify :: forall e s a b. s -> Deferred a b -> DeferredEff e Unit |
| 92 | + |
| 93 | + promise :: forall e a b. Deferred a b -> DeferredEff e (Promise a b) |
| 94 | + |
| 95 | + reject :: forall e a b. a -> Deferred a b -> DeferredEff e Unit |
| 96 | + |
| 97 | + resolve :: forall e a b. b -> Deferred a b -> DeferredEff e Unit |
| 98 | + |
| 99 | + |
78 | 100 | ## Module Angular.Element |
79 | 101 |
|
80 | 102 | ### Types |
|
231 | 253 |
|
232 | 254 | ### Types |
233 | 255 |
|
234 | | - type Config a b c = { responseType :: ResponseType, withCredentials :: Boolean, timeout :: Either Number (Promise c), cache :: Either Boolean Cache, xsrfCookieName :: String, xsrfHeaderName :: String, headers :: Headers, "data" :: RequestData b, params :: { | a }, url :: Url, method :: Method } |
| 256 | + type Config a b c d = { responseType :: ResponseType, withCredentials :: Boolean, timeout :: Either Number (Promise c d), cache :: Either Boolean Cache, xsrfCookieName :: String, xsrfHeaderName :: String, headers :: Headers, "data" :: RequestData b, params :: { | a }, url :: Url, method :: Method } |
235 | 257 |
|
236 | 258 | data Http :: * |
237 | 259 |
|
238 | | - type HttpResponse e r a b c = HttpEff e (Promise (Response r a b c)) |
| 260 | + type HttpResponse e r a b c d = HttpEff e (Promise (Response r a b c d) (Response r a b c d)) |
239 | 261 |
|
240 | | - type Response r a b c = { statusText :: String, config :: Config a b c, headers :: [String] -> String, status :: Status, "data" :: ResponseData r } |
| 262 | + type Response r a b c d = { statusText :: String, config :: Config a b c d, headers :: [String] -> String, status :: Status, "data" :: ResponseData r } |
241 | 263 |
|
242 | 264 |
|
243 | 265 | ### Values |
244 | 266 |
|
245 | | - config :: forall a b c. Config a b c |
| 267 | + config :: forall a b c d. Config a b c d |
246 | 268 |
|
247 | | - del :: forall e r a b c. Url -> Http -> HttpResponse e r a b c |
| 269 | + del :: forall e r a b c d. Url -> Http -> HttpResponse e r a b c d |
248 | 270 |
|
249 | | - del' :: forall e r a b c. Url -> Config a b c -> Http -> HttpResponse e r a b c |
| 271 | + del' :: forall e r a b c d. Url -> Config a b c d -> Http -> HttpResponse e r a b c d |
250 | 272 |
|
251 | | - get :: forall e r a b c. Url -> Http -> HttpResponse e r a b c |
| 273 | + get :: forall e r a b c d. Url -> Http -> HttpResponse e r a b c d |
252 | 274 |
|
253 | | - get' :: forall e r a b c. Url -> Config a b c -> Http -> HttpResponse e r a b c |
| 275 | + get' :: forall e r a b c d. Url -> Config a b c d -> Http -> HttpResponse e r a b c d |
254 | 276 |
|
255 | | - head :: forall e r a b c. Url -> Http -> HttpResponse e r a b c |
| 277 | + head :: forall e r a b c d. Url -> Http -> HttpResponse e r a b c d |
256 | 278 |
|
257 | | - head' :: forall e r a b c. Url -> Config a b c -> Http -> HttpResponse e r a b c |
| 279 | + head' :: forall e r a b c d. Url -> Config a b c d -> Http -> HttpResponse e r a b c d |
258 | 280 |
|
259 | | - http :: forall e r a b c. Config a b c -> Http -> HttpResponse e r a b c |
| 281 | + http :: forall e r a b c d. Config a b c d -> Http -> HttpResponse e r a b c d |
260 | 282 |
|
261 | | - jsonp :: forall e r a b c. Url -> Http -> HttpResponse e r a b c |
| 283 | + jsonp :: forall e r a b c d. Url -> Http -> HttpResponse e r a b c d |
262 | 284 |
|
263 | | - jsonp' :: forall e r a b c. Url -> Config a b c -> Http -> HttpResponse e r a b c |
| 285 | + jsonp' :: forall e r a b c d. Url -> Config a b c d -> Http -> HttpResponse e r a b c d |
264 | 286 |
|
265 | | - post :: forall e r a b c. Url -> RequestData b -> Http -> HttpResponse e r a b c |
| 287 | + post :: forall e r a b c d. Url -> RequestData b -> Http -> HttpResponse e r a b c d |
266 | 288 |
|
267 | | - post' :: forall e r a b c. Url -> RequestData b -> Config a b c -> Http -> HttpResponse e r a b c |
| 289 | + post' :: forall e r a b c d. Url -> RequestData b -> Config a b c d -> Http -> HttpResponse e r a b c d |
268 | 290 |
|
269 | | - put :: forall e r a b c. Url -> RequestData b -> Http -> HttpResponse e r a b c |
| 291 | + put :: forall e r a b c d. Url -> RequestData b -> Http -> HttpResponse e r a b c d |
270 | 292 |
|
271 | | - put' :: forall e r a b c. Url -> RequestData b -> Config a b c -> Http -> HttpResponse e r a b c |
| 293 | + put' :: forall e r a b c d. Url -> RequestData b -> Config a b c d -> Http -> HttpResponse e r a b c d |
272 | 294 |
|
273 | 295 |
|
274 | 296 | ## Module Angular.Injector |
|
425 | 447 | viewValue :: forall e a. NgModelController a -> NgModelEff e String |
426 | 448 |
|
427 | 449 |
|
428 | | -## Module Angular.Q |
| 450 | +## Module Angular.Promise |
429 | 451 |
|
430 | 452 | ### Types |
431 | 453 |
|
432 | | - data Promise :: * -> * |
433 | | - |
434 | | - data Q :: * |
| 454 | + data Promise :: * -> * -> * |
435 | 455 |
|
436 | 456 |
|
437 | 457 | ### Type Class Instances |
438 | 458 |
|
439 | | - instance applicativePromise :: Applicative Promise |
| 459 | + instance applicativePromise :: Applicative (Promise a) |
440 | 460 |
|
441 | | - instance applyPromise :: Apply Promise |
| 461 | + instance applyPromise :: Apply (Promise a) |
442 | 462 |
|
443 | | - instance bindPromise :: Bind Promise |
| 463 | + instance bifunctorPromise :: Bifunctor Promise |
444 | 464 |
|
445 | | - instance functorPromise :: Functor Promise |
| 465 | + instance bindPromise :: Bind (Promise a) |
446 | 466 |
|
447 | | - instance monadPromise :: Monad Promise |
| 467 | + instance functorPromise :: Functor (Promise a) |
| 468 | + |
| 469 | + instance monadPromise :: Monad (Promise a) |
448 | 470 |
|
449 | 471 |
|
450 | 472 | ### Values |
451 | 473 |
|
452 | | - all :: forall a. [Promise a] -> Q -> Promise [a] |
| 474 | + catch' :: forall a b c d. (a -> Promise c d) -> Promise a b -> Promise c d |
| 475 | + |
| 476 | + finally' :: forall e r a b. Eff e r -> Promise a b -> Promise a b |
453 | 477 |
|
454 | | - catch' :: forall a b c. Promise a -> (b -> Promise c) -> Promise c |
| 478 | + then' :: forall a b c d. (b -> Promise c d) -> Promise a b -> Promise c d |
455 | 479 |
|
456 | | - finally' :: forall a b. Promise a -> (Unit -> b) -> Promise a |
| 480 | + then'' :: forall a b c d. (b -> Promise c d) -> (a -> Promise c d) -> Promise a b -> Promise c d |
457 | 481 |
|
458 | | - reject :: forall a. a -> Q -> Promise a |
| 482 | + then''' :: forall e s t a b c d. (b -> Promise c d) -> (a -> Promise c d) -> (s -> Eff e t) -> Promise a b -> Promise c d |
459 | 483 |
|
460 | | - resolve :: forall a. a -> Q -> Promise a |
461 | 484 |
|
462 | | - then' :: forall a b. Promise a -> (a -> Promise b) -> Promise b |
| 485 | +## Module Angular.Q |
| 486 | + |
| 487 | +### Types |
| 488 | + |
| 489 | + data NgQ :: ! |
| 490 | + |
| 491 | + data Q :: * |
| 492 | + |
| 493 | + type QEff e r = Eff (ngq :: NgQ | e) r |
| 494 | + |
| 495 | + |
| 496 | +### Values |
| 497 | + |
| 498 | + all :: forall e a b. [Promise a b] -> Q -> QEff e (Promise b [a]) |
463 | 499 |
|
464 | | - then'' :: forall a b c. Promise a -> (a -> Promise b) -> (c -> Promise b) -> Promise b |
| 500 | + defer :: forall e a b. Q -> QEff e (Deferred a b) |
465 | 501 |
|
466 | | - then''' :: forall a b c d. Promise a -> (a -> Promise b) -> (b -> Promise b) -> (c -> d) -> Promise b |
| 502 | + reject :: forall e a b. a -> Q -> QEff e (Promise a b) |
467 | 503 |
|
468 | | - when :: forall a. a -> Q -> Promise a |
| 504 | + when :: forall e a b. b -> Q -> QEff e (Promise a b) |
469 | 505 |
|
470 | 506 |
|
471 | 507 | ## Module Angular.ST |
|
657 | 693 |
|
658 | 694 | getConfigResponseType :: ForeignConfig -> ResponseType |
659 | 695 |
|
660 | | - getConfigTimeout :: forall r. ForeignConfig -> Either Number (Promise r) |
| 696 | + getConfigTimeout :: forall a b. ForeignConfig -> Either Number (Promise a b) |
661 | 697 |
|
662 | 698 | getConfigUrl :: ForeignConfig -> Url |
663 | 699 |
|
|
689 | 725 |
|
690 | 726 | setConfigResponseType :: forall e. ResponseType -> ForeignConfig -> HttpEff e Unit |
691 | 727 |
|
692 | | - setConfigTimeout :: forall e a. Either Number (Promise a) -> ForeignConfig -> HttpEff e Unit |
| 728 | + setConfigTimeout :: forall e a b. Either Number (Promise a b) -> ForeignConfig -> HttpEff e Unit |
693 | 729 |
|
694 | 730 | setConfigUrl :: forall e. Url -> ForeignConfig -> HttpEff e Unit |
695 | 731 |
|
|
806 | 842 |
|
807 | 843 | readStatus :: Number -> Status |
808 | 844 |
|
809 | | - readTimeoutFn :: forall r. Fn3 (Number -> Either Number (Promise r)) (Promise r -> Either Number (Promise r)) ForeignTimeout (Either Number (Promise r)) |
| 845 | + readTimeoutFn :: forall a b. Fn3 (Number -> Either Number (Promise a b)) (Promise a b -> Either Number (Promise a b)) ForeignTimeout (Either Number (Promise a b)) |
810 | 846 |
|
811 | 847 | stringHeader :: String -> String -> Header |
812 | 848 |
|
|
0 commit comments