Skip to content

Commit eb750d4

Browse files
Update non-ST FFI to use Fn (#235)
* Update non-ST FFI to use Fn * Add changelog * Add dependency on functions * Update bower.json --------- Co-authored-by: Thomas Honeyman <[email protected]>
1 parent 568f07e commit eb750d4

File tree

6 files changed

+329
-372
lines changed

6 files changed

+329
-372
lines changed

CHANGELOG.md

+17-11
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,27 @@ Other improvements:
1515
## [v7.2.0](https://github.com/purescript/purescript-arrays/releases/tag/v7.2.0) - 2023-01-17
1616

1717
New features:
18+
1819
- Add `prependArray` (#224 by @JordanMartinez)
1920
- Add `Data.Array.ST.length` (#239 by @Blugatroff)
2021

2122
Other improvements:
23+
2224
- Use more efficient implementation for `mapWithIndex` (#233 by @JordanMartinez)
25+
- Updates non-`ST` FFI to use uncurried functions via `Fn` types (#235 by @JordanMartinez)
2326
- Updates `ST` FFI to use uncurried functions via `STFnX` types (#234 by @JordanMartinez)
2427

2528
## [v7.1.0](https://github.com/purescript/purescript-arrays/releases/tag/v7.1.0) - 2022-08-06
2629

2730
New features:
31+
2832
- Added `transpose` to `Array` (#225 by @newlandsvalley and @JordanMartinez)
2933
- Added `transpose` and `transpose' `to `Array.NonEmpty` (#227 by @newlandsvalley and @JordanMartinez)
3034

3135
## [v7.0.0](https://github.com/purescript/purescript-arrays/releases/tag/v7.0.0) - 2022-04-27
3236

3337
Breaking changes:
38+
3439
- Migrate FFI to ES modules (#218 by @kl0tl and @JordanMartinez)
3540
- Drop deprecated `group'` and `empty` (#219 by @JordanMartinez)
3641

@@ -39,21 +44,25 @@ New features:
3944
Bugfixes:
4045

4146
Other improvements:
47+
4248
- Fixed minor documentation issue with `find` (#216 by @JamieBallingall)
4349

4450
## [v6.0.1](https://github.com/purescript/purescript-arrays/releases/tag/v6.0.1) - 2021-04-19
4551

4652
Other improvements:
53+
4754
- Fixed warnings revealed by `v0.14.1` PS release (#213 by @JordanMartinez)
4855

4956
## [v6.0.0](https://github.com/purescript/purescript-arrays/releases/tag/v6.0.0) - 2021-02-26
5057

5158
Breaking changes:
59+
5260
- Added support for PureScript 0.14 and dropped support for all previous versions (#181)
5361
- Renamed `Data.Array.ST.empty` to `Data.Array.ST.new` (#191, #198)
5462
- Renamed `group'` to `groupAll` (#194, #200)
5563

5664
New features:
65+
5766
- Added specialized versions of the functions from `Data.Foldable` (#201):
5867
- Added `foldl`, `foldr`, `foldMap`, `fold`, `intercalate` to `Array`
5968
- Added `foldl1`, `foldr1`, `foldMap1`, `foldl1`, `intercalate` to `Array.NonEmpty`
@@ -62,9 +71,11 @@ New features:
6271
- Added `mapWithIndex`, `groupBy` to `Array.NonEmpty` (#201, #164)
6372

6473
Bugfixes:
74+
6575
- Fixed `sort`, so `undefined` is sorted by comparison function and not simply moved to the end of the array (#195, #197)
6676

6777
Other improvements:
78+
6879
- Generated changelog and added PR template (#208, #209)
6980
- Added benchmarking (#178)
7081
- Migrated to GitHub Actions for CI (#187, #169)
@@ -98,7 +109,7 @@ Fixed issue with `fill` polyfill not being included in the bundle by `purs bundl
98109

99110
## [v5.1.0](https://github.com/purescript/purescript-arrays/releases/tag/v5.1.0) - 2018-09-25
100111

101-
* Make `groupBy` stable https://github.com/purescript/purescript-arrays/pull/148 (@LiamGoodacre)
112+
- Make `groupBy` stable https://github.com/purescript/purescript-arrays/pull/148 (@LiamGoodacre)
102113

103114
## [v5.0.0](https://github.com/purescript/purescript-arrays/releases/tag/v5.0.0) - 2018-05-23
104115

@@ -119,8 +130,8 @@ Fixed issue with `fill` polyfill not being included in the bundle by `purs bundl
119130

120131
## [v4.2.2](https://github.com/purescript/purescript-arrays/releases/tag/v4.2.2) - 2017-12-16
121132

122-
* Add examples to the docs for most functions in `Data.Array` (@csicar)
123-
* Remove some redundant parentheses (@matthewleon)
133+
- Add examples to the docs for most functions in `Data.Array` (@csicar)
134+
- Remove some redundant parentheses (@matthewleon)
124135

125136
## [v4.2.1](https://github.com/purescript/purescript-arrays/releases/tag/v4.2.1) - 2017-10-01
126137

@@ -136,8 +147,8 @@ Fix some bugs in `Data.Array.ST.Partial` (@mhuisi)
136147

137148
## [v4.1.1](https://github.com/purescript/purescript-arrays/releases/tag/v4.1.1) - 2017-06-20
138149

139-
* Improve performance of `unzip`; this function is now O(n) instead of O(n^2)
140-
* Various documentation improvements
150+
- Improve performance of `unzip`; this function is now O(n) instead of O(n^2)
151+
- Various documentation improvements
141152

142153
## [v4.1.0](https://github.com/purescript/purescript-arrays/releases/tag/v4.1.0) - 2017-05-28
143154

@@ -259,6 +270,7 @@ This release works with versions 0.7.\* of the PureScript compiler. It will not
259270
## [v0.4.0-rc.2](https://github.com/purescript/purescript-arrays/releases/tag/v0.4.0-rc.2) - 2015-06-07
260271

261272
Updates for parity with `purescript-lists`:
273+
262274
- Added `insert`, `insertBy`, `alterAt`, `union`, `unionBy`
263275
- The `insertAt`, `modifyAt`, `deleteAt`... functions now return `Nothing` when given an out of range index
264276

@@ -288,8 +300,6 @@ Add `modifyAt`.
288300

289301
## [v0.3.2](https://github.com/purescript/purescript-arrays/releases/tag/v0.3.2) - 2015-02-18
290302

291-
292-
293303
## [v0.3.1](https://github.com/purescript/purescript-arrays/releases/tag/v0.3.1) - 2015-01-24
294304

295305
Add `take` and `drop`.
@@ -308,12 +318,8 @@ Include `(..)` operator.
308318

309319
## [v0.1.8](https://github.com/purescript/purescript-arrays/releases/tag/v0.1.8) - 2014-05-30
310320

311-
312-
313321
## [v0.1.7](https://github.com/purescript/purescript-arrays/releases/tag/v0.1.7) - 2014-05-29
314322

315-
316-
317323
## [v0.1.6](https://github.com/purescript/purescript-arrays/releases/tag/v0.1.6) - 2014-05-22
318324

319325
- Added `delete`, `deleteBy`, `(\\)` (garyb)

bower.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"purescript-bifunctors": "^6.0.0",
1919
"purescript-control": "^6.0.0",
2020
"purescript-foldable-traversable": "^6.0.0",
21+
"purescript-functions": "^6.0.0",
2122
"purescript-maybe": "^6.0.0",
2223
"purescript-nonempty": "^7.0.0",
2324
"purescript-partial": "^4.0.0",

0 commit comments

Comments
 (0)