Skip to content

Update to v0.14.0-rc3 #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ node_js: stable
env:
- PATH=$HOME/purescript:$PATH
install:
- TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
# - TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
- TAG=v0.14.0-rc3
- curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
Expand Down
10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"package.json"
],
"dependencies": {
"purescript-functions": "^4.0.0",
"purescript-prelude": "^4.1.0",
"purescript-st": "^4.0.0",
"purescript-unsafe-coerce": "^4.0.0"
"purescript-functions": "master",
"purescript-prelude": "master",
"purescript-st": "master",
"purescript-unsafe-coerce": "master"
},
"devDependencies": {
"purescript-assert": "^4.0.0"
"purescript-assert": "master"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"devDependencies": {
"eslint": "^4.19.1",
"purescript-psa": "^0.6.0",
"purescript-psa": "^0.8.0",
"pulp": "^15.0.0",
"rimraf": "^2.6.2"
}
Expand Down
4 changes: 2 additions & 2 deletions src/Record.purs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Prelude
import Data.Function.Uncurried (runFn2)
import Data.Symbol (class IsSymbol, SProxy(..), reflectSymbol)
import Prim.Row (class Lacks, class Cons, class Nub, class Union)
import Prim.RowList (class RowToList, kind RowList, Cons, Nil)
import Prim.RowList (class RowToList, RowList, Cons, Nil)
import Record.Unsafe (unsafeGet, unsafeSet, unsafeDelete)
import Record.Unsafe.Union (unsafeUnionFn)
import Type.Data.RowList (RLProxy(..))
Expand Down Expand Up @@ -223,7 +223,7 @@ equal
-> Boolean
equal a b = equalFields (RLProxy :: RLProxy rs) a b

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

instance equalFieldsCons
Expand Down
6 changes: 4 additions & 2 deletions src/Record/ST.purs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ module Record.ST

import Prelude

import Control.Monad.ST (ST, kind Region)
import Control.Monad.ST (ST, Region)
import Data.Symbol (class IsSymbol, SProxy, reflectSymbol)
import Prim.Row as Row

-- | A value of type `STRecord h r` represents a mutable record with fields `r`,
-- | belonging to the state thread `h`.
-- |
-- | Create values of type `STRecord` using `thaw`.
foreign import data STRecord :: Region -> # Type -> Type
foreign import data STRecord :: Region -> Row Type -> Type

type role STRecord nominal representational

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