Skip to content
This repository was archived by the owner on Jan 17, 2020. It is now read-only.

Commit 14c1b59

Browse files
authored
Merge pull request #8 from justinwoo/aff-4.0
Upgrade to Aff 4.0
2 parents da1a00a + fa1dd6c commit 14c1b59

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

bower.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"output"
88
],
99
"dependencies": {
10-
"purescript-aff": "^3.0.0",
11-
"purescript-control": "^3.0.0",
10+
"purescript-aff": "^4.0.0",
11+
"purescript-control": "^3.3.0",
1212
"purescript-eff": "^3.1.0",
13-
"purescript-exceptions": "^3.0.0",
14-
"purescript-monoid": "^3.0.0",
13+
"purescript-exceptions": "^3.1.0",
14+
"purescript-monoid": "^3.2.0",
1515
"purescript-newtype": "^2.0.0",
16-
"purescript-prelude": "^3.0.0",
17-
"purescript-tailrec": "^3.1.0",
16+
"purescript-prelude": "^3.1.0",
17+
"purescript-tailrec": "^3.3.0",
1818
"purescript-transformers": "^3.4.0"
1919
},
2020
"devDependencies": {

src/Control/Monad/IO.purs

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Prelude
1111

1212
import Control.Alt (class Alt)
1313
import Control.Alternative (class Alternative)
14-
import Control.Monad.Aff (Aff, ParAff(..), launchAff)
15-
import Control.Monad.Aff.Class (class MonadAff, liftAff)
14+
import Control.Monad.Aff (Aff, ParAff, launchAff)
15+
import Control.Monad.Aff.Class (class MonadAff)
1616
import Control.Monad.Aff.Unsafe (unsafeCoerceAff)
1717
import Control.Monad.Eff.Class (class MonadEff, liftEff)
1818
import Control.Monad.Eff.Exception (Error)
@@ -26,7 +26,6 @@ import Control.Parallel (class Parallel, parallel, sequential)
2626
import Control.Plus (class Plus)
2727
import Data.Monoid (class Monoid)
2828
import Data.Newtype (class Newtype, unwrap, wrap)
29-
import Prelude
3029

3130
newtype IO a = IO (Aff (infinity :: INFINITY) a)
3231

@@ -62,8 +61,8 @@ instance monadAffIO :: MonadAff eff IO where
6261
liftAff = wrap <<< unsafeCoerceAff
6362

6463
instance parallelParIO :: Parallel ParIO IO where
65-
parallel = ParIO <<< ParAff <<< runIO
66-
sequential (ParIO (ParAff ma)) = IO ma
64+
parallel = ParIO <<< parallel <<< runIO
65+
sequential (ParIO ma) = IO $ sequential ma
6766

6867
instance monadEffIO :: MonadEff eff IO where
6968
liftEff = wrap <<< liftEff <<< unsafeCoerceEff
@@ -76,6 +75,6 @@ derive newtype instance altIO :: Alt IO
7675

7776
derive newtype instance plusIO :: Plus IO
7877

79-
derive newtype instance alternativeIO :: Alternative IO
78+
instance alternativeIO :: Alternative IO
8079

81-
derive newtype instance monadZeroIO :: MonadZero IO
80+
instance monadZeroIO :: MonadZero IO

0 commit comments

Comments
 (0)