Skip to content

Commit bb0cb5e

Browse files
committed
Merge pull request #22 from dylex/master
Restrict Promise.then' not to change failure type
2 parents 6178a0d + 3ec5ed7 commit bb0cb5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MODULE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@
707707

708708
pureResolve :: forall a b. b -> Promise a b
709709

710-
then' :: forall a b c d. (b -> Promise c d) -> Promise a b -> Promise c d
710+
then' :: forall a b c. (b -> Promise a c) -> Promise a b -> Promise a c
711711

712712
then'' :: forall a b c d. (b -> Promise c d) -> (a -> Promise c d) -> Promise a b -> Promise c d
713713

src/Angular/Promise.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ foreign import thenFn'
5858
\ } "
5959
:: forall a b c d. Fn2 (b -> Promise c d) (Promise a b) (Promise c d)
6060

61-
then' :: forall a b c d. (b -> Promise c d) -> Promise a b -> Promise c d
61+
then' :: forall a b c. (b -> Promise a c) -> Promise a b -> Promise a c
6262
then' = runFn2 thenFn'
6363

6464
foreign import thenFn''

0 commit comments

Comments
 (0)