Skip to content
Open
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
28 changes: 12 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,26 @@ on:
pull_request:
branches: [master]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
purescript: "unstable"

- uses: actions/setup-node@v2
with:
node-version: "14.x"
node-version: "24"

- name: Install dependencies
run: |
npm install -g bower
npm install
bower install --production
run: npm install

- name: Build source
run: npm run-script build
run: npm run build

- name: Run tests
run: |
bower install
npm run-script test --if-present
run: npm test

- name: Check formatting
run: npm run format:check
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/.*
!/.gitignore
!/.github/
!/.tidyrc.json
/bower_components/
/node_modules/
/output/
package-lock.json
/package-lock.json
/spago.lock
/tmp/
10 changes: 10 additions & 0 deletions .tidyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"importSort": "ide",
"importWrap": "source",
"indent": 2,
"operatorsFile": null,
"ribbon": 1,
"typeArrowPlacement": "first",
"unicode": "never",
"width": null
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@ Bugfixes:

Other improvements:

## [v7.1.1](https://github.com/purescript/purescript-free/releases/tag/v7.1.1) - 2026-10-17

Other improvements:

- Migrate from Bower/Pulp to Spago, update CI and formatting, and remove the benchmarks (#129 by @thomashoneyman).

## [v7.1.0](https://github.com/purescript/purescript-free/releases/tag/v7.1.0) - 2023-09-05

New features:

- Added `FoldableWithIndex` and `TraversableWithIndex` instances for `Cofree` (#126 by @postsolar)

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

Breaking changes:

- Update project and deps to PureScript v0.15.0 (#123 by @JordanMartinez)
- Drop deprecated `MonadZero` instance (#122 by @JordanMartinez)
- Drop deprecated `unfoldCofree`; use `buildCofree` instead (#124 by @JordanMartinez)
Expand All @@ -33,30 +41,37 @@ Other improvements:
## [v6.2.0](https://github.com/purescript/purescript-free/releases/tag/v6.2.0) - 2021-11-19

New features:

- Added a `FunctorWithIndex` instance for `Cofree` (#118 by @mikesol)

Other improvements:

- Split `LICENSE` into `LICENSE` and `LICENSE_THIRDPARTY` (#119 by @maxdeviant)

## [v6.1.0](https://github.com/purescript/purescript-free/releases/tag/v6.1.0) - 2021-09-09

New features:

- Added semigroup and monoid instances for `Cofree` (#116 by @mikesol)

## [v6.0.1](https://github.com/purescript/purescript-free/releases/tag/v6.0.1) - 2021-04-20

Bugfixes:

- Removed unused constraint from `Ord1` instance (#114 by @rintcius)

Other improvements:

- Fixed warnings revealed by v0.14.1 PS release (#115 by @JordanMartinez)

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

Breaking changes:

- Added support for PureScript 0.14 and dropped support for all previous versions (#106, #110)

Other improvements:

- Migrated CI to GitHub Actions and updated installation instructions to use Spago (#108)
- Added a CHANGELOG.md file and pull request template (#111, #112)
- Updated benchmarks (#103)
Expand Down Expand Up @@ -232,6 +247,7 @@ This release works with versions 0.7.\* of the PureScript compiler. It will not
## [v0.3.0](https://github.com/purescript/purescript-free/releases/tag/v0.3.0) - 2015-02-21

**This release requires PureScript v0.6.8 or later**

- Updated dependencies

## [v0.2.0](https://github.com/purescript/purescript-free/releases/tag/v0.2.0) - 2015-01-10
Expand Down
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,3 @@ spago install free
## Documentation

Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-free).

## Benchmarks

The following benchmarks compare the implementation at `v5.2.0` (commit f686f5fc07766f3ca9abc83b47b6ad3da326759a) with the implementation at `v0.6.1` (commit 0df59c5d459fed983131856886fc3a4b43234f1f), which used the `Gosub` technique to defer monadic binds.

![left-bind-small](benchmark/left-bind-small.png)

![left-bind-large](benchmark/left-bind-large.png)

![right-bind-small](benchmark/right-bind-small.png)

![right-bind-large](benchmark/right-bind-large.png)
192 changes: 0 additions & 192 deletions benchmark/Benchmark/Free0df59c5.purs

This file was deleted.

Loading
Loading