Repository navigation
Migrate Prelude from Bower to Spago #318
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
+280
−245
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
be6e3dd
Migrate repository tooling and CI to Spago
thomashoneyman c1032d5
Update lint directives and use do-let test style
thomashoneyman 75dfaac
Format repository files with purs-tidy and Oxfmt
thomashoneyman a75dd04
Place package dependencies before test configuration
thomashoneyman a4fb5cb
Configure registry publication metadata
thomashoneyman 4707b7d
Credit migration pull request in changelog
thomashoneyman 119390f
Prepare versioned changelog for release
thomashoneyman dffe5dd
Prepare changelog release date and unreleased section
thomashoneyman 8d44395
Simplify power branching with a shared recursive result
thomashoneyman 71addb3
Keep power guards with do-let branch bindings
thomashoneyman 2c680c5
Complete Prelude release documentation
thomashoneyman 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 was deleted.
Oops, something went wrong.
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,8 +1,9 @@ | ||
| /.* | ||
| !/.gitignore | ||
| !/.eslintrc.json | ||
| !/.oxfmtrc.json | ||
| !/.tidyrc.json | ||
| !/.github/ | ||
| /bower_components/ | ||
| /node_modules/ | ||
| /output/ | ||
| package-lock.json | ||
| /package-lock.json | ||
| /spago.lock |
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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "trailingComma": "es5" | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "importSort": "ide", | ||
| "importWrap": "source", | ||
| "indent": 2, | ||
| "operatorsFile": null, | ||
| "ribbon": 1, | ||
| "typeArrowPlacement": "first", | ||
| "unicode": "never", | ||
| "width": null | ||
| } |
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 was deleted.
Oops, something went wrong.
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,14 +1,23 @@ | ||
| { | ||
| "private": true, | ||
| "homepage": "https://github.com/purescript/purescript-prelude", | ||
| "license": "BSD-3-Clause", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/purescript/purescript-prelude.git" | ||
| }, | ||
| "scripts": { | ||
| "clean": "rimraf output && rimraf .pulp-cache", | ||
| "build": "eslint src && pulp build -- --censor-lib --strict", | ||
| "test": "pulp test" | ||
| "build": "spago build", | ||
| "test": "spago test", | ||
| "lint": "oxlint --deny-warnings src test", | ||
| "format": "purs-tidy format-in-place src test && oxfmt --write .", | ||
| "format:check": "purs-tidy check src test && oxfmt --check ." | ||
| }, | ||
| "devDependencies": { | ||
| "eslint": "^7.15.0", | ||
| "purescript-psa": "^0.8.2", | ||
| "pulp": "16.0.0-0", | ||
| "rimraf": "^3.0.2" | ||
| "oxfmt": "^0.73.0", | ||
| "oxlint": "^1.88.0", | ||
| "purescript": "^0.15.16", | ||
| "purs-tidy": "^0.11.1", | ||
| "spago": "^1.0.5" | ||
| } | ||
| } | ||
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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| package: | ||
| name: prelude | ||
| description: The PureScript Prelude | ||
| build: | ||
| strict: true | ||
| pedanticPackages: true | ||
| publish: | ||
| version: 6.0.3 | ||
| license: BSD-3-Clause | ||
| location: | ||
| githubOwner: purescript | ||
| githubRepo: purescript-prelude | ||
| dependencies: [] | ||
| test: | ||
| main: Test.Main | ||
| strict: true | ||
| pedanticPackages: true | ||
| dependencies: [] | ||
| workspace: {} |
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
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,21 +1,21 @@ | ||
| export const arrayBind = | ||
| typeof Array.prototype.flatMap === "function" | ||
| ? function (arr) { | ||
| return function (f) { | ||
| return arr.flatMap(f); | ||
| }; | ||
| } | ||
| return function (f) { | ||
| return arr.flatMap(f); | ||
| }; | ||
| } | ||
| : function (arr) { | ||
| return function (f) { | ||
| var result = []; | ||
| var l = arr.length; | ||
| for (var i = 0; i < l; i++) { | ||
| var xs = f(arr[i]); | ||
| var k = xs.length; | ||
| for (var j = 0; j < k; j++) { | ||
| result.push(xs[j]); | ||
| return function (f) { | ||
| var result = []; | ||
| var l = arr.length; | ||
| for (var i = 0; i < l; i++) { | ||
| var xs = f(arr[i]); | ||
| var k = xs.length; | ||
| for (var j = 0; j < k; j++) { | ||
| result.push(xs[j]); | ||
| } | ||
| } | ||
| } | ||
| return result; | ||
| return result; | ||
| }; | ||
| }; | ||
| }; |
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
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
Oops, something went wrong.
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.