Skip to content

Commit 389ba69

Browse files
authored
Upgrade to latest PureScript and spec versions (#17)
1 parent c83de33 commit 389ba69

File tree

9 files changed

+3919
-52
lines changed

9 files changed

+3919
-52
lines changed

Diff for: .github/workflows/build.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install & build
15+
run: npm install && npx spago build
16+
17+
- name: Cache PureScript dependencies
18+
uses: actions/cache@v2
19+
with:
20+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
21+
path: |
22+
.spago
23+
output
24+
25+
- name: Test
26+
run: npx spago test

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
bower_components/
55
node_modules/
66
output/
7+
.spago/
8+
.psc-ide-port
9+
.purs-repl
710
tmp/
811
/*.log
912
tags

Diff for: Makefile

-25
This file was deleted.

Diff for: README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# purescript-spec-quickcheck
22

33
purescript-spec-quickcheck is a tiny adapter between the
4-
[purescript-spec](https://github.com/owickstrom/purescript-spec) test framework
4+
[purescript-spec](https://github.com/purescript-spec/purescript-spec) test framework
55
and [purescript-quickcheck](https://github.com/purescript/purescript-quickcheck).
66

77
## Usage
@@ -19,10 +19,10 @@ import Test.QuickCheck ((===), (/==))
1919
import Test.Spec (describe, it)
2020
import Test.Spec.QuickCheck (quickCheck)
2121
import Test.Spec.Reporter.Console (consoleReporter)
22-
import Test.Spec.Runner (run)
22+
import Test.Spec.Runner (runSpec)
2323
2424
main :: Effect Unit
25-
main = run [consoleReporter] do
25+
main = runSpec [consoleReporter] do
2626
describe "Math" do
2727
it "works" $
2828
quickCheck \n -> (n * 2 / 2) === n
@@ -34,13 +34,11 @@ main = run [consoleReporter] do
3434

3535
This module is published, and has its API documentation, [on
3636
Pursuit](https://pursuit.purescript.org/packages/purescript-spec-quickcheck).
37-
For the full documentation on Purescript Spec, see [The
38-
Guide](http://purescript-spec.wickstrom.tech/).
3937

4038
## Contribute
4139

4240
If you have any issues or possible improvements please file them as
43-
[GitHub Issues](https://github.com/owickstrom/purescript-spec-quickcheck/issues).
41+
[GitHub Issues](https://github.com/purescript-spec/purescript-spec-quickcheck/issues).
4442
Pull requests are encouraged.
4543

4644
## License

Diff for: bower.json

+24-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
{
2-
"name": "purescript-spec-quickcheck",
3-
"ignore": [
4-
"**/.*",
5-
"bower_components",
6-
"tests",
7-
"externs",
8-
"tmp",
9-
"output"
10-
],
11-
"dependencies": {
12-
"purescript-prelude": "^6.0.0",
13-
"purescript-aff": "^7.0.0",
14-
"purescript-random": "^6.0.0",
15-
"purescript-quickcheck": "^8.0.0",
16-
"purescript-spec": "^7.0.0"
17-
},
18-
"license": "MIT",
19-
"repository": {
20-
"type": "git",
21-
"url": "https://github.com/purescript-spec/purescript-spec-quickcheck.git"
22-
}
2+
"name": "purescript-spec-quickcheck",
3+
"license": [
4+
"MIT"
5+
],
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/purescript-spec/purescript-spec-quickcheck"
9+
},
10+
"ignore": [
11+
"**/.*",
12+
"node_modules",
13+
"bower_components",
14+
"output"
15+
],
16+
"dependencies": {
17+
"purescript-aff": "^v7.1.0",
18+
"purescript-effect": "^v4.0.0",
19+
"purescript-foldable-traversable": "^v6.0.0",
20+
"purescript-lists": "^v7.0.0",
21+
"purescript-maybe": "^v6.0.0",
22+
"purescript-prelude": "^v6.0.1",
23+
"purescript-quickcheck": "^v8.0.1",
24+
"purescript-spec": "^v7.5.3"
25+
}
2326
}

0 commit comments

Comments
 (0)