Skip to content

Commit 847f03e

Browse files
committed
Update for PureScript 0.11
1 parent 8517996 commit 847f03e

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
dist: trusty
33
sudo: required
4-
node_js: 6
4+
node_js: stable
55
env:
66
- PATH=$HOME/purescript:$PATH
77
install:

bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"package.json"
2525
],
2626
"dependencies": {
27-
"purescript-arrays": "^3.0.0",
28-
"purescript-lazy": "^2.0.0",
29-
"purescript-distributive": "^2.0.0",
30-
"purescript-tuples": "^3.0.0"
27+
"purescript-arrays": "^4.0.0",
28+
"purescript-lazy": "^3.0.0",
29+
"purescript-distributive": "^3.0.0",
30+
"purescript-tuples": "^4.0.0"
3131
},
3232
"devDependencies": {
33-
"purescript-console": "^2.0.0"
33+
"purescript-console": "^3.0.0"
3434
}
3535
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "pulp build --censor-lib --strict",
5+
"build": "pulp build -- --censor-lib --strict",
66
"test": "pulp test"
77
},
88
"devDependencies": {
9-
"pulp": "^9.0.1",
10-
"purescript-psa": "^0.3.9",
11-
"rimraf": "^2.5.0"
9+
"pulp": "^10.0.4",
10+
"purescript-psa": "^0.5.0-rc.1",
11+
"rimraf": "^2.6.1"
1212
}
1313
}

src/Control/Comonad/Store/Class.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Comonad w <= ComonadStore s w | w -> s where
3434
peek :: forall a. s -> w a -> a
3535

3636
-- | Extract a collection of values from positions which depend on the current position.
37-
experiment :: forall f a w s. (ComonadStore s w, Functor f) => (s -> f s) -> w a -> f a
37+
experiment :: forall f a w s. ComonadStore s w => Functor f => (s -> f s) -> w a -> f a
3838
experiment f x = flip peek x <$> f (pos x)
3939

4040
-- | Extract a value from a position which depends on the current position.

src/Control/Monad/State/Trans.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ withStateT f (StateT s) = StateT (s <<< f)
5757
derive instance newtypeStateT :: Newtype (StateT s m a) _
5858

5959
instance functorStateT :: Functor m => Functor (StateT s m) where
60-
map f (StateT a) = StateT (\s -> map (\(Tuple b s) -> Tuple (f b) s) (a s))
60+
map f (StateT a) = StateT (\s -> map (\(Tuple b s') -> Tuple (f b) s') (a s))
6161

6262
instance applyStateT :: Monad m => Apply (StateT s m) where
6363
apply = ap

test/Example/Cont.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import Control.Monad.Eff.Class (class MonadEff, liftEff)
77
import Control.Monad.Eff.Console (CONSOLE, log)
88
import Control.Monad.Cont.Trans (ContT, runContT, callCC)
99

10-
main0 :: forall s m eff. (MonadEff (console :: CONSOLE | eff) m) => ContT s m String
10+
main0 :: forall s m eff. MonadEff (console :: CONSOLE | eff) m => ContT s m String
1111
main0 = callCC \k -> do
12-
liftEff $ log "Before the continuation"
13-
k "You should see this."
12+
void $ liftEff $ log "Before the continuation"
13+
void $ k "You should see this."
1414
k "You should not see this."
1515

1616
main :: forall eff. Eff (console :: CONSOLE | eff) Unit

test/Example/StateEff.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ push x = do
3030

3131
testState :: forall r. Stack (console :: CONSOLE | r) Int
3232
testState = do
33-
push 1
34-
push 2
35-
push 3
36-
pop
33+
void $ push 1
34+
void $ push 2
35+
void $ push 3
36+
void $ pop
3737
pop
3838

3939
main :: forall eff. Eff (console :: CONSOLE | eff) Unit

0 commit comments

Comments
 (0)