Skip to content
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

feat: use Variant, 5 more parsers + spago.yaml #52

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
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
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"
purescript: "latest"
purs-tidy: "latest"
spago: "unstable"

- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
path: |
.spago
output
Expand All @@ -31,19 +32,10 @@ jobs:
run: spago install

- name: Build source
run: spago build --no-install
run: spago build --offline

- name: Run tests
run: spago test --no-install
run: spago test --offline

- name: Check formatting
run: purs-tidy check src test

- name: Verify Bower & Pulp
run: |
npm install bower [email protected]
npx bower install
npx pulp build -- --censor-lib --strict
if [ -d "test" ]; then
npx pulp test
fi
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,37 @@ Notable changes to this project are documented in this file. The format is based

Breaking changes:

- `Pathy.Gen`
- replaced methods
- genAbsAnyPath -> genAbsAnyPathVariant
- genRelAnyPath -> genRelAnyPathVariant
- added methods
- genAnyDirPathVariant
- genAnyFilePathVariant
- genAnyAnyPathVariant
- `Pathy.Parser`
- replaced methods
- parseAnyDir -> parseAnyDirPathVariant
- parseAnyFile -> parseAnyFilePathVariant
- parseAbsPath -> parseAbsAnyPathVariant
- parseRelPath -> parseRelAnyPathVariant
- added methods
- parseAnyAnyPathVariant
- `Pathy.Path`
- replaced
- RelPath -> RelAnyPathVariant
- AbsPath -> AbsAnyPathVariant
- AnyDir -> AnyDirPathVariant
- AnyFile -> AnyFilePathVariant
- deleted
- `type AnyPath a = Either (Path a Dir) (Path a File)` (no analog, but `AnyPath Rel == RelAnyPathVariant`, `AnyPath Abs == AbsAnyPathVariant`)
- added
- AnyAnyPathVariant
- proxyRelDir
- proxyAbsDir
- proxyRelFile
- proxyAbsFile

New features:

Bugfixes:
Expand All @@ -15,35 +46,42 @@ Other improvements:
## [v9.0.0](https://github.com/purescript-contrib/purescript-pathy/releases/tag/v9.0.0) - 2022-04-27

Breaking changes:

- Update project and deps to PureScript v0.15.0 (#50 by @JordanMartinez)

New features:

Bugfixes:

Other improvements:

- Added `purs-tidy` formatter (#49 by @thomashoneyman)

## [v8.1.0](https://github.com/purescript-contrib/purescript-pathy/releases/tag/v8.1.0) - 2021-05-06

New features:

- Exported `escape` implemented by @safareli in #33 (#46 by @JordanMartinez)

Other improvements:

- Fixed warnings revealed by v0.14.1 PS release (#46 by @JordanMartinez)
- Installed missing dependencies used in source code (#46 by @JordanMartinez)

## [v8.0.0](https://github.com/purescript-contrib/purescript-pathy/releases/tag/v8.0.0) - 2021-02-26

Breaking changes:

- Added support for PureScript 0.14 and dropped support for all previous versions (#42)

New features:

- Added roles declarations to forbid unsafe coercions (#43)

Bugfixes:

Other improvements:

- Changed default branch to `main` from `master`
- Updated to comply with Contributors library guidelines by adding new issue and pull request templates, updating documentation, and migrating to Spago for local development and CI (#41)

Expand Down
34 changes: 0 additions & 34 deletions bower.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages.dhall

This file was deleted.

26 changes: 0 additions & 26 deletions spago.dhall

This file was deleted.

Loading
Loading