Skip to content

Commit 6ba386f

Browse files
paluhJordanMartinezkl0tl
authored
Update to v0.14.0-rc3 (#66)
* Update library to compile on 0.14.0 PS release * Add roles declarations to allow safe coercions * Update TAG to v0.14.0-rc3; dependencies to master; psa to v0.8.0 Co-authored-by: Jordan Martinez <jordanalex.martinez@gmail.com> Co-authored-by: Cyril Sobierajewicz <sobierajewicz.cyril@gmail.com>
1 parent 12ae04b commit 6ba386f

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-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-functions": "^4.0.0",
21-
"purescript-prelude": "^4.1.0",
22-
"purescript-st": "^4.0.0",
23-
"purescript-unsafe-coerce": "^4.0.0"
20+
"purescript-functions": "master",
21+
"purescript-prelude": "master",
22+
"purescript-st": "master",
23+
"purescript-unsafe-coerce": "master"
2424
},
2525
"devDependencies": {
26-
"purescript-assert": "^4.0.0"
26+
"purescript-assert": "master"
2727
}
2828
}

package.json

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

src/Record.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Prelude
1919
import Data.Function.Uncurried (runFn2)
2020
import Data.Symbol (class IsSymbol, SProxy(..), reflectSymbol)
2121
import Prim.Row (class Lacks, class Cons, class Nub, class Union)
22-
import Prim.RowList (class RowToList, kind RowList, Cons, Nil)
22+
import Prim.RowList (class RowToList, RowList, Cons, Nil)
2323
import Record.Unsafe (unsafeGet, unsafeSet, unsafeDelete)
2424
import Record.Unsafe.Union (unsafeUnionFn)
2525
import Type.Data.RowList (RLProxy(..))
@@ -223,7 +223,7 @@ equal
223223
-> Boolean
224224
equal a b = equalFields (RLProxy :: RLProxy rs) a b
225225

226-
class EqualFields (rs :: RowList) (row :: # Type) | rs -> row where
226+
class EqualFields (rs :: RowList Type) (row :: Row Type) | rs -> row where
227227
equalFields :: RLProxy rs -> Record row -> Record row -> Boolean
228228

229229
instance equalFieldsCons

src/Record/ST.purs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ module Record.ST
99

1010
import Prelude
1111

12-
import Control.Monad.ST (ST, kind Region)
12+
import Control.Monad.ST (ST, Region)
1313
import Data.Symbol (class IsSymbol, SProxy, reflectSymbol)
1414
import Prim.Row as Row
1515

1616
-- | A value of type `STRecord h r` represents a mutable record with fields `r`,
1717
-- | belonging to the state thread `h`.
1818
-- |
1919
-- | Create values of type `STRecord` using `thaw`.
20-
foreign import data STRecord :: Region -> # Type -> Type
20+
foreign import data STRecord :: Region -> Row Type -> Type
21+
22+
type role STRecord nominal representational
2123

2224
-- | Freeze a mutable record, creating a copy.
2325
foreign import freeze :: forall h r. STRecord h r -> ST h (Record r)

0 commit comments

Comments
 (0)