Skip to content

Commit a66a88e

Browse files
committed
another bug fix
1 parent 291fe66 commit a66a88e

File tree

3 files changed

+59
-6
lines changed

3 files changed

+59
-6
lines changed

output/examples.js

Lines changed: 56 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Control/Monad/Aff.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ module Control.Monad.Aff
235235
""" :: forall e1 e2 a. Aff e1 a -> Aff e2 a
236236

237237
foreign import _forkAff """
238-
function _forkAff(canceler, aff) {
238+
function _forkAff(nonCanceler, aff) {
239239
var voidF = function(){};
240240
241241
return function(success, error) {
@@ -247,7 +247,7 @@ module Control.Monad.Aff
247247
error(e);
248248
}
249249
250-
return canceler;
250+
return nonCanceler;
251251
};
252252
}
253253
""" :: forall e a. Fn2 (Canceler e) (Aff e a) (Aff e (Canceler e))

src/Control/Monad/Aff/Par.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module Control.Monad.Aff.Par
5656
ve <- makeVar' 0 -- the error count (starts at 0)
5757
c1 <- forkAff $ attempt a1 >>= either (maybeKill va ve) (putVar va)
5858
c2 <- forkAff $ attempt a2 >>= either (maybeKill va ve) (putVar va)
59-
(takeVar va) -- `cancelWith` (c1 <> c2)
59+
(takeVar va) `cancelWith` (c1 <> c2)
6060

6161
instance plusPar :: Plus (Par e) where
6262
empty = Par empty

0 commit comments

Comments
 (0)