Skip to content

Commit beea819

Browse files
Update to PureScript v0.15.0 (#141)
1 parent cdcdf89 commit beea819

File tree

6 files changed

+41
-28
lines changed

6 files changed

+41
-28
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Set up a PureScript toolchain
1717
uses: purescript-contrib/setup-purescript@main
1818
with:
19+
purescript: "unstable"
1920
purs-tidy: "latest"
2021

2122
- name: Cache PureScript dependencies
@@ -32,8 +33,17 @@ jobs:
3233
- name: Build source
3334
run: spago build --no-install --purs-args '--censor-lib --strict'
3435

35-
- name: Run tests
36-
run: spago test --no-install
36+
# - name: Run tests
37+
# run: spago test --no-install
3738

3839
- name: Check formatting
3940
run: purs-tidy check src test examples
41+
42+
- name: Verify Bower & Pulp
43+
run: |
44+
npm install bower [email protected]
45+
npx bower install
46+
npx pulp build -- --censor-lib --strict
47+
if [ -d "test" ]; then
48+
npx pulp test
49+
fi

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Notable changes to this project are documented in this file. The format is based
55
## [Unreleased]
66

77
Breaking changes:
8+
- Update project and deps to PureScript v0.15.0 (#141 by @JordanMartinez)
9+
- Replaced polymorphic proxies with monomorphic `Proxy` (#141 by @JordanMartinez)
810

911
New features:
1012
- Add `coerced` (#140 by @ozkutuk)

bower.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,30 @@
1212
"url": "https://github.com/purescript-contrib/purescript-profunctor-lenses.git"
1313
},
1414
"dependencies": {
15-
"purescript-arrays": "^6.0.0",
16-
"purescript-bifunctors": "^5.0.0",
17-
"purescript-const": "^5.0.0",
18-
"purescript-control": "^5.0.0",
19-
"purescript-distributive": "^5.0.0",
20-
"purescript-either": "^5.0.0",
21-
"purescript-foldable-traversable": "^5.0.0",
22-
"purescript-foreign-object": "^3.0.0",
23-
"purescript-functors": "^4.0.0",
24-
"purescript-identity": "^5.0.0",
25-
"purescript-lists": "^6.0.0",
26-
"purescript-maybe": "^5.0.0",
27-
"purescript-newtype": "^4.0.0",
28-
"purescript-ordered-collections": "^2.0.0",
29-
"purescript-partial": "^3.0.0",
30-
"purescript-prelude": "^5.0.0",
31-
"purescript-profunctor": "^5.0.0",
32-
"purescript-record": "^3.0.0",
33-
"purescript-transformers": "^5.0.0",
34-
"purescript-tuples": "^6.0.0"
15+
"purescript-arrays": "master",
16+
"purescript-bifunctors": "master",
17+
"purescript-const": "master",
18+
"purescript-control": "master",
19+
"purescript-distributive": "master",
20+
"purescript-either": "master",
21+
"purescript-foldable-traversable": "master",
22+
"purescript-foreign-object": "master",
23+
"purescript-functors": "master",
24+
"purescript-identity": "master",
25+
"purescript-lists": "master",
26+
"purescript-maybe": "master",
27+
"purescript-newtype": "master",
28+
"purescript-ordered-collections": "master",
29+
"purescript-partial": "master",
30+
"purescript-prelude": "master",
31+
"purescript-profunctor": "master",
32+
"purescript-record": "master",
33+
"purescript-transformers": "master",
34+
"purescript-tuples": "master"
3535
},
3636
"devDependencies": {
37-
"purescript-console": "^5.0.0",
38-
"purescript-effect": "^3.0.0"
37+
"purescript-console": "master",
38+
"purescript-effect": "master",
39+
"purescript-assert": "master"
3940
}
4041
}

packages.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
let upstream =
2-
https://github.com/purescript/package-sets/releases/download/psc-0.14.5-20211116/packages.dhall sha256:7ba810597a275e43c83411d2ab0d4b3c54d0b551436f4b1632e9ff3eb62e327a
2+
https://raw.githubusercontent.com/purescript/package-sets/prepare-0.15/src/packages.dhall
33

44
in upstream

spago.dhall

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
, "partial"
2121
, "prelude"
2222
, "profunctor"
23-
, "psci-support"
2423
, "record"
2524
, "safe-coerce"
2625
, "transformers"

src/Data/Lens/Record.purs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Data.Lens (Lens, lens)
66
import Data.Symbol (class IsSymbol)
77
import Prim.Row as Row
88
import Record (get, set)
9+
import Type.Proxy (Proxy)
910

1011
-- | Construct a (type-changing) lens for a record property, by providing a
1112
-- | proxy for the `Symbol` which corresponds to the property label.
@@ -19,10 +20,10 @@ import Record (get, set)
1920
-- | :: forall a b r. Lens { foo :: a | r } { foo :: b | r } a b
2021
-- | ```
2122
prop
22-
:: forall l r1 r2 r a b proxy
23+
:: forall l r1 r2 r a b
2324
. IsSymbol l
2425
=> Row.Cons l a r r1
2526
=> Row.Cons l b r r2
26-
=> proxy l
27+
=> Proxy l
2728
-> Lens (Record r1) (Record r2) a b
2829
prop l = lens (get l) (flip (set l))

0 commit comments

Comments
 (0)