Skip to content

Commit 6af2e9d

Browse files
authored
Merge pull request #37 from JordanMartinez/updateTo14
Update to v0.14.0-rc3
2 parents 39fb562 + 86d45f0 commit 6af2e9d

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ node_js: stable
55
env:
66
- PATH=$HOME/purescript:$PATH
77
install:
8-
- TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
8+
# - TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
9+
- TAG=v0.14.0-rc3
910
- curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
1011
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
1112
- chmod a+x $HOME/purescript

bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"package.json"
1818
],
1919
"dependencies": {
20-
"purescript-prelude": "^4.0.0",
21-
"purescript-tailrec": "^4.0.0",
22-
"purescript-partial": "^2.0.0",
23-
"purescript-unsafe-coerce": "^4.0.0"
20+
"purescript-prelude": "master",
21+
"purescript-tailrec": "master",
22+
"purescript-partial": "master",
23+
"purescript-unsafe-coerce": "master"
2424
},
2525
"devDependencies": {
26-
"purescript-console": "^4.0.0"
26+
"purescript-console": "master"
2727
}
2828
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"devDependencies": {
99
"eslint": "^4.19.1",
1010
"pulp": "^15.0.0",
11-
"purescript-psa": "^0.6.0",
11+
"purescript-psa": "^0.8.0",
1212
"rimraf": "^2.6.2"
1313
}
1414
}

src/Control/Monad/ST.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Control.Monad.ST (module Internal) where
22

3-
import Control.Monad.ST.Internal (ST, kind Region, run, while, for, foreach) as Internal
3+
import Control.Monad.ST.Internal (ST, Region, run, while, for, foreach) as Internal

src/Control/Monad/ST/Global.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Control.Monad.ST.Global
55

66
import Prelude
77

8-
import Control.Monad.ST (ST, kind Region)
8+
import Control.Monad.ST (ST, Region)
99
import Effect (Effect)
1010
import Unsafe.Coerce (unsafeCoerce)
1111

src/Control/Monad/ST/Internal.purs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Control.Monad.ST.Internal
2-
( kind Region
2+
( Region
33
, ST
44
, run
55
, while
@@ -21,7 +21,7 @@ import Partial.Unsafe (unsafePartial)
2121
-- | `ST` is concerned with _restricted_ mutation. Mutation is restricted to a
2222
-- | _region_ of mutable references. This kind is inhabited by phantom types
2323
-- | which represent regions in the type system.
24-
foreign import kind Region
24+
foreign import data Region :: Type
2525

2626
-- | The `ST` type constructor allows _local mutation_, i.e. mutation which
2727
-- | does not "escape" into the surrounding computation.
@@ -32,6 +32,8 @@ foreign import kind Region
3232
-- | The `run` function can be used to run a computation in the `ST` monad.
3333
foreign import data ST :: Region -> Type -> Type
3434

35+
type role ST nominal representational
36+
3537
foreign import map_ :: forall r a b. (a -> b) -> ST r a -> ST r b
3638

3739
foreign import pure_ :: forall r a. a -> ST r a
@@ -102,6 +104,8 @@ foreign import foreach :: forall r a. Array a -> (a -> ST r Unit) -> ST r Unit
102104
-- | type `a`, which can be used with the `ST r` effect.
103105
foreign import data STRef :: Region -> Type -> Type
104106

107+
type role STRef nominal representational
108+
105109
-- | Create a new mutable reference.
106110
foreign import new :: forall a r. a -> ST r (STRef r a)
107111

0 commit comments

Comments
 (0)