Skip to content

Commit ddcb50c

Browse files
committed
Bump dependencies
1 parent 0a13865 commit ddcb50c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

bower.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"bower_components",
1010
"output"
1111
],
12-
"repository": {
13-
"type": "git",
14-
"url": "git://github.com/paf31/purescript-aff-coroutines.git"
15-
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git://github.com/paf31/purescript-aff-coroutines.git"
15+
},
1616
"dependencies": {
17-
"purescript-aff": "^0.11.3",
18-
"purescript-coroutines": "~0.3.0"
17+
"purescript-aff": "~0.12.0",
18+
"purescript-coroutines": "~0.4.0"
1919
}
2020
}

src/Control/Coroutine/Aff.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Data.Functor (($>))
1515
import Control.Coroutine
1616
import Control.Monad.Eff (Eff())
1717
import Control.Monad.Eff.Class (liftEff)
18-
import Control.Monad.Aff (Aff(), launchAff)
18+
import Control.Monad.Aff (Aff(), runAff)
1919
import Control.Monad.Aff.AVar (AVar(), AVAR(), makeVar, takeVar, putVar)
2020
import Control.Monad.Trans (lift)
2121

@@ -37,5 +37,5 @@ import Control.Monad.Trans (lift)
3737
produce :: forall a r eff. ((Either a r -> Eff (avar :: AVAR | eff) Unit) -> Eff (avar :: AVAR | eff) Unit) -> Producer a (Aff (avar :: AVAR | eff)) r
3838
produce recv = do
3939
v <- lift makeVar
40-
lift $ liftEff $ recv $ launchAff <<< putVar v
41-
producer (takeVar v)
40+
lift $ liftEff $ recv $ runAff (const (return unit)) return <<< putVar v
41+
producer (takeVar v)

0 commit comments

Comments
 (0)