Skip to content

Commit ef2f9ef

Browse files
Update to v0.15.0 (#53)
* Update to CI to use 'unstable' purescript * Update pulp to 16.0.0-0 and psa to 0.8.2 * Update Bower dependencies to master * Fix compiler warnings * Added changelog entry
1 parent ac380f9 commit ef2f9ef

File tree

5 files changed

+22
-19
lines changed

5 files changed

+22
-19
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
- uses: actions/checkout@v2
1414

1515
- uses: purescript-contrib/setup-purescript@main
16+
with:
17+
purescript: "unstable"
1618

1719
- uses: actions/setup-node@v1
1820
with:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ 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 (#53 by @JordanMartinez)
89

910
New features:
1011
- Exported `Data.Map.Internal` data constructors (#52 by @natefaubion)

bower.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
"package.json"
1717
],
1818
"dependencies": {
19-
"purescript-arrays": "^6.0.0",
20-
"purescript-foldable-traversable": "^5.0.0",
21-
"purescript-gen": "^3.0.0",
22-
"purescript-lists": "^6.0.0",
23-
"purescript-maybe": "^5.0.0",
24-
"purescript-partial": "^3.0.0",
25-
"purescript-prelude": "^5.0.0",
26-
"purescript-st": "^5.0.0",
27-
"purescript-tailrec": "^5.0.0",
28-
"purescript-tuples": "^6.0.0",
29-
"purescript-unfoldable": "^5.0.0"
19+
"purescript-arrays": "master",
20+
"purescript-foldable-traversable": "master",
21+
"purescript-gen": "master",
22+
"purescript-lists": "master",
23+
"purescript-maybe": "master",
24+
"purescript-partial": "master",
25+
"purescript-prelude": "master",
26+
"purescript-st": "master",
27+
"purescript-tailrec": "master",
28+
"purescript-tuples": "master",
29+
"purescript-unfoldable": "master"
3030
},
3131
"devDependencies": {
32-
"purescript-assert": "^5.0.0",
33-
"purescript-console": "^5.0.0",
34-
"purescript-minibench": "^3.0.0",
35-
"purescript-quickcheck": "^7.0.0"
32+
"purescript-assert": "master",
33+
"purescript-console": "master",
34+
"purescript-minibench": "master",
35+
"purescript-quickcheck": "master"
3636
}
3737
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"bench": "npm run bench:build && npm run bench:run"
1010
},
1111
"devDependencies": {
12-
"pulp": "^15.0.0",
13-
"purescript-psa": "^0.8.0",
12+
"pulp": "16.0.0-0",
13+
"purescript-psa": "^0.8.2",
1414
"rimraf": "^3.0.2"
1515
}
1616
}

test/Test/Data/Map.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ mapTests = do
180180

181181
log "fromFoldableWith (<>) = fromFoldable . collapse with (<>) . group on fst"
182182
quickCheck $ \arr ->
183-
let combine (Tuple s a) (Tuple t b) = (Tuple s $ b <> a)
183+
let combine (Tuple s a) (Tuple _ b) = (Tuple s $ b <> a)
184184
foldl1 g = unsafePartial \(Cons x xs) -> foldl g x xs
185185
f = M.fromFoldable <<< map (foldl1 combine <<< NEL.toList) <<<
186186
groupBy ((==) `on` fst) <<< sortBy (compare `on` fst) in
@@ -229,7 +229,7 @@ mapTests = do
229229
quickCheck $ \(TestMap m1) (TestMap m2) k ->
230230
M.lookup (smallKey k) (M.intersection (m1 :: M.Map SmallKey Int) (m2 :: M.Map SmallKey Int)) == (case M.lookup k m2 of
231231
Nothing -> Nothing
232-
Just v -> M.lookup k m1) <?> ("m1: " <> show m1 <> ", m2: " <> show m2 <> ", k: " <> show k <> ", v1: " <> show (M.lookup k m1) <> ", v2: " <> show (M.lookup k m2) <> ", intersection: " <> show (M.intersection m1 m2))
232+
Just _ -> M.lookup k m1) <?> ("m1: " <> show m1 <> ", m2: " <> show m2 <> ", k: " <> show k <> ", v1: " <> show (M.lookup k m1) <> ", v2: " <> show (M.lookup k m2) <> ", intersection: " <> show (M.intersection m1 m2))
233233

234234
log "Intersection is idempotent"
235235
quickCheck $ \(TestMap m1) (TestMap m2) -> ((m1 :: M.Map SmallKey Int) `M.intersection` m2) == ((m1 `M.intersection` m2) `M.intersection` (m2 :: M.Map SmallKey Int))

0 commit comments

Comments
 (0)