Skip to content

Commit 8da9bec

Browse files
Update for PureScript 0.14 and remove Purty (#21)
1 parent c5ba2e5 commit 8da9bec

File tree

13 files changed

+67
-118
lines changed

13 files changed

+67
-118
lines changed

.github/workflows/integration.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ jobs:
1919

2020
- uses: ./ # equivalent to purescript-contrib/setup-purescript@<branch>
2121
with:
22-
purty: "latest"
2322
zephyr: "latest"
2423

25-
- name: Check purty is installed correctly
26-
run: purty src/Main.purs
27-
2824
- name: Check spago and purs are installed correctly
29-
# run: spago build --purs-args '--censor-lib --strict --codegen corefn,js'
3025
run: |
3126
purs --version
3227
spago version

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ A GitHub Action which sets up a PureScript toolchain for CI. Contains the follow
1313
You can also optionally include the following tools:
1414

1515
- The [Zephyr dead code elimination tool](https://github.com/coot/zephyr)
16-
- The [Purty source code formatter](https://gitlab.com/joneshf/purty)
1716

1817
This action is designed to support PureScript tools. Your PureScript project may also depend on tooling and libraries provided by the NPM ecosystem, in which case you will also want to use the [setup-node](https://github.com/actions/setup-node) action.
1918

@@ -43,10 +42,9 @@ steps:
4342
- uses: actions/checkout@v2
4443
- uses: purescript-contrib/setup-purescript@main
4544
with:
46-
purescript: "0.13.8"
47-
psa: "0.7.2"
48-
spago: "0.15.3"
49-
purty: "latest"
45+
purescript: "0.14.0"
46+
psa: "0.8.2"
47+
spago: "latest"
5048
zephyr: "0.3.2"
5149
- run: spago build
5250
```
@@ -120,4 +118,4 @@ These libraries and applications are examples of `setup-purescript` in action:
120118
- [halogen-formless](https://github.com/thomashoneyman/purescript-halogen-formless/blob/main/.github/workflows/ci.yml)
121119
- [halogen-hooks](https://github.com/thomashoneyman/purescript-halogen-hooks/blob/main/.github/workflows/ci.yml)
122120
- [slug](https://github.com/thomashoneyman/purescript-slug/blob/main/.github/workflows/ci.yml)
123-
- Add your project here
121+
- ...add your package here!

action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ inputs:
1111
psa:
1212
description: "The psa version to install. Examples: latest, 0.7.2"
1313
default: "latest"
14-
purty:
15-
description: "The Purty version to install. Examples: latest, 6.2.0"
1614
zephyr:
1715
description: "The Zephyr version to install. Examples: latest, 0.3.2"
1816
runs:

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/update.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"purs":"0.14.3","spago":"0.20.3","psa":"0.8.2","purty":"7.0.0","zephyr":"0.3.2"}
1+
{ "purs": "0.14.3", "spago": "0.20.3", "psa": "0.8.2", "zephyr": "0.3.2" }

packages.dhall

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
11
let upstream =
2-
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200922/packages.dhall sha256:5edc9af74593eab8834d7e324e5868a3d258bbab75c5531d2eb770d4324a2900
2+
https://github.com/purescript/package-sets/releases/download/psc-0.14.3-20210722/packages.dhall sha256:1ceb43aa59436bf5601bac45f6f3781c4e1f0e4c2b8458105b018e5ed8c30f8c
33

44
in upstream
5-
with versions =
6-
{ dependencies =
7-
[ "console"
8-
, "control"
9-
, "either"
10-
, "exceptions"
11-
, "foldable-traversable"
12-
, "functions"
13-
, "integers"
14-
, "lists"
15-
, "maybe"
16-
, "orders"
17-
, "parsing"
18-
, "partial"
19-
, "strings"
20-
]
21-
, repo = "https://github.com/hdgarrood/purescript-versions.git"
22-
, version = "v5.0.1"
23-
}

shell.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
let
22
pkgs = import (builtins.fetchTarball {
3-
url = "https://github.com/NixOS/nixpkgs/archive/20.03.tar.gz";
3+
url = "https://github.com/NixOS/nixpkgs/archive/21.05.tar.gz";
44
}) {};
55

6-
# 2020-08-01 nix-prefetch-git https://github.com/justinwoo/easy-purescript-nix
6+
# 2021-08-05 nix-prefetch-git https://github.com/justinwoo/easy-purescript-nix
77
pursPkgs = import (pkgs.fetchFromGitHub {
88
owner = "justinwoo";
99
repo = "easy-purescript-nix";
10-
rev = "7ff5a12af5750f94d0480059dba0ba6b82c6c452";
11-
sha256 = "0af25dqhs13ii4mx9jjkx2pww4ddbs741vb5gfc5ckxb084d69fq";
10+
rev = "bbef4245cd6810ea84e97a47c801947bfec9fadc";
11+
sha256 = "00764zbwhbn61jwb5px2syzi2f9djyl8fmbd2p8wma985af54iwx";
1212
}) { inherit pkgs; };
1313

1414
in pkgs.stdenv.mkDerivation {
1515
name = "setup-purescript";
1616
buildInputs = with pursPkgs; [
1717
pursPkgs.purs
1818
pursPkgs.spago
19-
pursPkgs.purty
20-
pkgs.nodejs-12_x
19+
pkgs.nodejs-14_x
2120
];
2221
}

spago.dhall

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,34 @@
11
{ name = "setup-purescript"
22
, dependencies =
33
[ "aff"
4-
, "aff-promise"
54
, "aff-retry"
65
, "affjax"
76
, "argonaut-codecs"
87
, "argonaut-core"
9-
, "console"
10-
, "debug"
8+
, "arrays"
9+
, "bifunctors"
1110
, "effect"
11+
, "either"
12+
, "enums"
13+
, "exceptions"
14+
, "foldable-traversable"
1215
, "github-actions-toolkit"
13-
, "monad-loops"
16+
, "integers"
17+
, "math"
18+
, "maybe"
19+
, "newtype"
20+
, "node-buffer"
1421
, "node-fs"
1522
, "node-path"
1623
, "node-process"
17-
, "nullable"
18-
, "psci-support"
19-
, "record"
24+
, "parsing"
25+
, "partial"
26+
, "prelude"
27+
, "refs"
28+
, "strings"
29+
, "tailrec"
30+
, "transformers"
31+
, "tuples"
2032
, "versions"
2133
]
2234
, packages = ./packages.dhall

src/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ main = runAff_ go $ runExceptT do
3030

3131
go res = case join res of
3232
Left err -> Core.setFailed (message err)
33-
Right a -> pure unit
33+
Right _ -> pure unit
3434

3535
update :: Effect Unit
3636
update = launchAff_ updateVersions

0 commit comments

Comments
 (0)