-
Notifications
You must be signed in to change notification settings - Fork 11
Update to PureScript v0.15.0 #20
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
Merged
JordanMartinez
merged 11 commits into
purescript-contrib:main
from
working-group-purescript-es:es-modules-libraries
Mar 22, 2022
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
89723f5
Migrated FFI to ES modules via 'lebab'
JordanMartinez 5207c29
Removed '"use strict";' in FFI files
JordanMartinez 66b39ab
Update to CI to use 'unstable' purescript
JordanMartinez 8893702
Add CI test: verify 'bower.json' file works via pulp
JordanMartinez c79d72b
Ignore spago-based tests (temporarily)
JordanMartinez cf25b73
Update Bower dependencies to master or main
JordanMartinez a95596f
Update packages.dhall to 'prepare-0.15' package set
JordanMartinez ec66a88
Removed unneeded 'psci-support' package
JordanMartinez e610b23
Added changelog entry
JordanMartinez b9ec011
Comment out other test
JordanMartinez f7b0b98
Make psci-support dev dep
JordanMartinez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ jobs: | |
| - name: Set up a PureScript toolchain | ||
| uses: purescript-contrib/setup-purescript@main | ||
| with: | ||
| purescript: "unstable" | ||
| purs-tidy: "latest" | ||
|
|
||
| - name: Cache PureScript dependencies | ||
|
|
@@ -38,8 +39,17 @@ jobs: | |
| - name: Build tests | ||
| run: spago -x test.dhall build --no-install --purs-args '--censor-lib --strict' | ||
|
|
||
| - name: Run tests | ||
| # - name: Run tests | ||
| run: spago -x test.dhall test --no-install | ||
|
|
||
| - 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,29 @@ | ||
| { | ||
| "name": "purescript-uint", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/purescript-contrib/purescript-uint.git" | ||
| }, | ||
| "ignore": [ | ||
| "**/.*", | ||
| "node_modules", | ||
| "bower_components", | ||
| "output" | ||
| ], | ||
| "dependencies": { | ||
| "purescript-enums": "^v5.0.0", | ||
| "purescript-gen": "^v3.0.0", | ||
| "purescript-math": "^v3.0.0", | ||
| "purescript-maybe": "^v5.0.0", | ||
| "purescript-prelude": "^v5.0.0", | ||
| "purescript-psci-support": "^v5.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "purescript-effect": "^v3.0.0", | ||
| "purescript-quickcheck": "^v7.1.0", | ||
| "purescript-quickcheck-laws": "^v6.0.1" | ||
| } | ||
| "name": "purescript-uint", | ||
| "license": [ | ||
| "MIT" | ||
| ], | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/purescript-contrib/purescript-uint.git" | ||
| }, | ||
| "ignore": [ | ||
| "**/.*", | ||
| "node_modules", | ||
| "bower_components", | ||
| "output" | ||
| ], | ||
| "dependencies": { | ||
| "purescript-enums": "master", | ||
| "purescript-gen": "master", | ||
| "purescript-math": "master", | ||
| "purescript-maybe": "master", | ||
| "purescript-prelude": "master", | ||
| "purescript-psci-support": "master" | ||
JordanMartinez marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "devDependencies": { | ||
| "purescript-effect": "master", | ||
| "purescript-quickcheck": "master", | ||
| "purescript-quickcheck-laws": "main" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,126 +1,4 @@ | ||
| {- | ||
| Welcome to your new Dhall package-set! | ||
|
|
||
| Below are instructions for how to edit this file for most use | ||
| cases, so that you don't need to know Dhall to use it. | ||
|
|
||
| ## Warning: Don't Move This Top-Level Comment! | ||
|
|
||
| Due to how `dhall format` currently works, this comment's | ||
| instructions cannot appear near corresponding sections below | ||
| because `dhall format` will delete the comment. However, | ||
| it will not delete a top-level comment like this one. | ||
|
|
||
| ## Use Cases | ||
|
|
||
| Most will want to do one or both of these options: | ||
| 1. Override/Patch a package's dependency | ||
| 2. Add a package not already in the default package set | ||
|
|
||
| This file will continue to work whether you use one or both options. | ||
| Instructions for each option are explained below. | ||
|
|
||
| ### Overriding/Patching a package | ||
|
|
||
| Purpose: | ||
| - Change a package's dependency to a newer/older release than the | ||
| default package set's release | ||
| - Use your own modified version of some dependency that may | ||
| include new API, changed API, removed API by | ||
| using your custom git repo of the library rather than | ||
| the package set's repo | ||
|
|
||
| Syntax: | ||
| Replace the overrides' "{=}" (an empty record) with the following idea | ||
| The "//" or "⫽" means "merge these two records and | ||
| when they have the same value, use the one on the right:" | ||
| ------------------------------- | ||
| let overrides = | ||
| { packageName = | ||
| upstream.packageName // { updateEntity1 = "new value", updateEntity2 = "new value" } | ||
| , packageName = | ||
| upstream.packageName // { version = "v4.0.0" } | ||
| , packageName = | ||
| upstream.packageName // { repo = "https://www.example.com/path/to/new/repo.git" } | ||
| } | ||
| ------------------------------- | ||
|
|
||
| Example: | ||
| ------------------------------- | ||
| let overrides = | ||
| { halogen = | ||
| upstream.halogen // { version = "master" } | ||
| , halogen-vdom = | ||
| upstream.halogen-vdom // { version = "v4.0.0" } | ||
| } | ||
| ------------------------------- | ||
|
|
||
| ### Additions | ||
|
|
||
| Purpose: | ||
| - Add packages that aren't already included in the default package set | ||
|
|
||
| Syntax: | ||
| Replace the additions' "{=}" (an empty record) with the following idea: | ||
| ------------------------------- | ||
| let additions = | ||
| { package-name = | ||
| { dependencies = | ||
| [ "dependency1" | ||
| , "dependency2" | ||
| ] | ||
| , repo = | ||
| "https://example.com/path/to/git/repo.git" | ||
| , version = | ||
| "tag ('v4.0.0') or branch ('master')" | ||
| } | ||
| , package-name = | ||
| { dependencies = | ||
| [ "dependency1" | ||
| , "dependency2" | ||
| ] | ||
| , repo = | ||
| "https://example.com/path/to/git/repo.git" | ||
| , version = | ||
| "tag ('v4.0.0') or branch ('master')" | ||
| } | ||
| , etc. | ||
| } | ||
| ------------------------------- | ||
|
|
||
| Example: | ||
| ------------------------------- | ||
| let additions = | ||
| { benchotron = | ||
| { dependencies = | ||
| [ "arrays" | ||
| , "exists" | ||
| , "profunctor" | ||
| , "strings" | ||
| , "quickcheck" | ||
| , "lcg" | ||
| , "transformers" | ||
| , "foldable-traversable" | ||
| , "exceptions" | ||
| , "node-fs" | ||
| , "node-buffer" | ||
| , "node-readline" | ||
| , "datetime" | ||
| , "now" | ||
| ] | ||
| , repo = | ||
| "https://github.com/hdgarrood/purescript-benchotron.git" | ||
| , version = | ||
| "v7.0.0" | ||
| } | ||
| } | ||
| ------------------------------- | ||
| -} | ||
| let upstream = | ||
| https://github.com/purescript/package-sets/releases/download/psc-0.14.3-20210722/packages.dhall sha256:1ceb43aa59436bf5601bac45f6f3781c4e1f0e4c2b8458105b018e5ed8c30f8c | ||
|
|
||
| let overrides = {=} | ||
|
|
||
| let additions = {=} | ||
| https://raw.githubusercontent.com/purescript/package-sets/prepare-0.15/src/packages.dhall | ||
|
|
||
| in upstream // overrides // additions | ||
| in upstream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,6 @@ | |
| [ "prelude" | ||
| , "math" | ||
| , "maybe" | ||
| , "psci-support" | ||
| , "enums" | ||
| , "gen" | ||
| ] | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.