Skip to content

Commit 43782ac

Browse files
Update to PureScript v0.15.0 (#20)
* Migrated FFI to ES modules via 'lebab' * Removed '"use strict";' in FFI files * Update to CI to use 'unstable' purescript * Add CI test: verify 'bower.json' file works via pulp * Ignore spago-based tests (temporarily) * Update Bower dependencies to master or main * Update packages.dhall to 'prepare-0.15' package set * Removed unneeded 'psci-support' package * Added changelog entry * Comment out other test * Make psci-support dev dep
1 parent d5a09af commit 43782ac

File tree

6 files changed

+90
-200
lines changed

6 files changed

+90
-200
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Set up a PureScript toolchain
1717
uses: purescript-contrib/setup-purescript@main
1818
with:
19+
purescript: "unstable"
1920
purs-tidy: "latest"
2021

2122
- name: Cache PureScript dependencies
@@ -38,8 +39,17 @@ jobs:
3839
- name: Build tests
3940
run: spago -x test.dhall build --no-install --purs-args '--censor-lib --strict'
4041

41-
- name: Run tests
42-
run: spago -x test.dhall test --no-install
42+
# - name: Run tests
43+
# run: spago -x test.dhall test --no-install
4344

4445
- name: Check formatting
4546
run: purs-tidy check src test
47+
48+
- name: Verify Bower & Pulp
49+
run: |
50+
npm install bower [email protected]
51+
npx bower install
52+
npx pulp build -- --censor-lib --strict
53+
if [ -d "test" ]; then
54+
npx pulp test
55+
fi

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

55

6+
## Unreleased
7+
8+
Breaking Changes:
9+
- Migrate FFI to ES modules (#20 by @JordanMartinez)
10+
611
## v6.0.2 2021-07-11
712

813
Move quickcheck test dependencies to `test.dhall`.

bower.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"name": "purescript-uint",
3-
"license": [
4-
"MIT"
5-
],
6-
"repository": {
7-
"type": "git",
8-
"url": "https://github.com/purescript-contrib/purescript-uint.git"
9-
},
10-
"ignore": [
11-
"**/.*",
12-
"node_modules",
13-
"bower_components",
14-
"output"
15-
],
16-
"dependencies": {
17-
"purescript-enums": "^v5.0.0",
18-
"purescript-gen": "^v3.0.0",
19-
"purescript-math": "^v3.0.0",
20-
"purescript-maybe": "^v5.0.0",
21-
"purescript-prelude": "^v5.0.0",
22-
"purescript-psci-support": "^v5.0.0"
23-
},
24-
"devDependencies": {
25-
"purescript-effect": "^v3.0.0",
26-
"purescript-quickcheck": "^v7.1.0",
27-
"purescript-quickcheck-laws": "^v6.0.1"
28-
}
2+
"name": "purescript-uint",
3+
"license": [
4+
"MIT"
5+
],
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/purescript-contrib/purescript-uint.git"
9+
},
10+
"ignore": [
11+
"**/.*",
12+
"node_modules",
13+
"bower_components",
14+
"output"
15+
],
16+
"dependencies": {
17+
"purescript-enums": "master",
18+
"purescript-gen": "master",
19+
"purescript-math": "master",
20+
"purescript-maybe": "master",
21+
"purescript-prelude": "master"
22+
},
23+
"devDependencies": {
24+
"purescript-effect": "master",
25+
"purescript-psci-support": "master",
26+
"purescript-quickcheck": "master",
27+
"purescript-quickcheck-laws": "main"
28+
}
2929
}

packages.dhall

Lines changed: 2 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,4 @@
1-
{-
2-
Welcome to your new Dhall package-set!
3-
4-
Below are instructions for how to edit this file for most use
5-
cases, so that you don't need to know Dhall to use it.
6-
7-
## Warning: Don't Move This Top-Level Comment!
8-
9-
Due to how `dhall format` currently works, this comment's
10-
instructions cannot appear near corresponding sections below
11-
because `dhall format` will delete the comment. However,
12-
it will not delete a top-level comment like this one.
13-
14-
## Use Cases
15-
16-
Most will want to do one or both of these options:
17-
1. Override/Patch a package's dependency
18-
2. Add a package not already in the default package set
19-
20-
This file will continue to work whether you use one or both options.
21-
Instructions for each option are explained below.
22-
23-
### Overriding/Patching a package
24-
25-
Purpose:
26-
- Change a package's dependency to a newer/older release than the
27-
default package set's release
28-
- Use your own modified version of some dependency that may
29-
include new API, changed API, removed API by
30-
using your custom git repo of the library rather than
31-
the package set's repo
32-
33-
Syntax:
34-
Replace the overrides' "{=}" (an empty record) with the following idea
35-
The "//" or "⫽" means "merge these two records and
36-
when they have the same value, use the one on the right:"
37-
-------------------------------
38-
let overrides =
39-
{ packageName =
40-
upstream.packageName // { updateEntity1 = "new value", updateEntity2 = "new value" }
41-
, packageName =
42-
upstream.packageName // { version = "v4.0.0" }
43-
, packageName =
44-
upstream.packageName // { repo = "https://www.example.com/path/to/new/repo.git" }
45-
}
46-
-------------------------------
47-
48-
Example:
49-
-------------------------------
50-
let overrides =
51-
{ halogen =
52-
upstream.halogen // { version = "master" }
53-
, halogen-vdom =
54-
upstream.halogen-vdom // { version = "v4.0.0" }
55-
}
56-
-------------------------------
57-
58-
### Additions
59-
60-
Purpose:
61-
- Add packages that aren't already included in the default package set
62-
63-
Syntax:
64-
Replace the additions' "{=}" (an empty record) with the following idea:
65-
-------------------------------
66-
let additions =
67-
{ package-name =
68-
{ dependencies =
69-
[ "dependency1"
70-
, "dependency2"
71-
]
72-
, repo =
73-
"https://example.com/path/to/git/repo.git"
74-
, version =
75-
"tag ('v4.0.0') or branch ('master')"
76-
}
77-
, package-name =
78-
{ dependencies =
79-
[ "dependency1"
80-
, "dependency2"
81-
]
82-
, repo =
83-
"https://example.com/path/to/git/repo.git"
84-
, version =
85-
"tag ('v4.0.0') or branch ('master')"
86-
}
87-
, etc.
88-
}
89-
-------------------------------
90-
91-
Example:
92-
-------------------------------
93-
let additions =
94-
{ benchotron =
95-
{ dependencies =
96-
[ "arrays"
97-
, "exists"
98-
, "profunctor"
99-
, "strings"
100-
, "quickcheck"
101-
, "lcg"
102-
, "transformers"
103-
, "foldable-traversable"
104-
, "exceptions"
105-
, "node-fs"
106-
, "node-buffer"
107-
, "node-readline"
108-
, "datetime"
109-
, "now"
110-
]
111-
, repo =
112-
"https://github.com/hdgarrood/purescript-benchotron.git"
113-
, version =
114-
"v7.0.0"
115-
}
116-
}
117-
-------------------------------
118-
-}
1191
let upstream =
120-
https://github.com/purescript/package-sets/releases/download/psc-0.14.3-20210722/packages.dhall sha256:1ceb43aa59436bf5601bac45f6f3781c4e1f0e4c2b8458105b018e5ed8c30f8c
121-
122-
let overrides = {=}
123-
124-
let additions = {=}
2+
https://raw.githubusercontent.com/purescript/package-sets/prepare-0.15/src/packages.dhall
1253

126-
in upstream // overrides // additions
4+
in upstream

spago.dhall

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[ "prelude"
44
, "math"
55
, "maybe"
6-
, "psci-support"
76
, "enums"
87
, "gen"
98
]

0 commit comments

Comments
 (0)