Skip to content

Commit 7dbf39d

Browse files
Update for PureScript 0.15 (#16)
* Update for PureScript 0.15 * Update ci.yml * Update shell.nix
1 parent 79e2800 commit 7dbf39d

File tree

8 files changed

+46
-12
lines changed

8 files changed

+46
-12
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
14+
1515
- uses: purescript-contrib/setup-purescript@main
1616
with:
1717
purs-tidy: "latest"
1818

19+
- name: Install esbuild
20+
run: npm install --global esbuild@0.14.38
21+
1922
- name: Build source
2023
run: npm run build
2124

example/basic-hooks/Basic/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ main :: Effect Unit
1414
main = launchAff_ do
1515
body <- HA.awaitBody
1616
root <- runStoreT BS.initialStore BS.reduce Counter.component
17-
runUI root unit body
17+
void $ runUI root unit body

example/basic-no-action/NoAction/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ main :: Effect Unit
1414
main = launchAff_ do
1515
body <- HA.awaitBody
1616
root <- runStoreT NAS.initialStore (#) Counter.component
17-
runUI root unit body
17+
void $ runUI root unit body

example/basic/Basic/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ main :: Effect Unit
1414
main = launchAff_ do
1515
body <- HA.awaitBody
1616
root <- runStoreT BS.initialStore BS.reduce Counter.component
17-
runUI root unit body
17+
void $ runUI root unit body

example/redux-todo/ReduxTodo/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ main :: Effect Unit
1414
main = launchAff_ do
1515
body <- HA.awaitBody
1616
root <- runStoreT Store.initialStore Store.reduce app
17-
runUI root unit body
17+
void $ runUI root unit body

packages.dhall

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
let upstream =
2-
https://github.com/purescript/package-sets/releases/download/psc-0.14.7-20220303/packages.dhall
3-
sha256:d7cbc15ea16768e4a4f99baa58a54559dd2648c6c1362de2469d9e41c23b28c3
2+
https://github.com/purescript/package-sets/releases/download/psc-0.15.0-20220502/packages.dhall
3+
sha256:38d347aeba9fe6359c208abe87a5cecf1ffb14294f11ad19664ae35c59b6e29a
44

55
in upstream
6+
with
7+
halogen-hooks =
8+
{ repo = "https://github.com/thomashoneyman/purescript-halogen-hooks"
9+
, version = "v0.6.0"
10+
, dependencies =
11+
[ "aff"
12+
, "arrays"
13+
, "bifunctors"
14+
, "effect"
15+
, "exceptions"
16+
, "foldable-traversable"
17+
, "foreign-object"
18+
, "free"
19+
, "freeap"
20+
, "halogen"
21+
, "halogen-subscriptions"
22+
, "maybe"
23+
, "newtype"
24+
, "ordered-collections"
25+
, "parallel"
26+
, "partial"
27+
, "prelude"
28+
, "refs"
29+
, "tailrec"
30+
, "transformers"
31+
, "tuples"
32+
, "unsafe-coerce"
33+
, "unsafe-reference"
34+
, "web-dom"
35+
, "web-html"
36+
]
37+
}

shell.nix

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

66
# To update to a newer version of easy-purescript-nix, run:
@@ -10,8 +10,8 @@ let
1010
pursPkgs = import (pkgs.fetchFromGitHub {
1111
owner = "justinwoo";
1212
repo = "easy-purescript-nix";
13-
rev = "aa72388ca0fb72ed64467f59a121db1f104897db";
14-
sha256 = "1j37v3ncnakhq7p4l2vqdn4li8bgwcc8cd2hk2fblxhnlglikgx2";
13+
rev = "0ad5775c1e80cdd952527db2da969982e39ff592";
14+
sha256 = "0x53ads5v8zqsk4r1mfpzf5913byifdpv5shnvxpgw634ifyj1kg";
1515
}) { inherit pkgs; };
1616

1717
in pkgs.stdenv.mkDerivation {
@@ -24,5 +24,6 @@ in pkgs.stdenv.mkDerivation {
2424
pursPkgs.purescript-language-server
2525

2626
pkgs.nodejs-16_x
27+
pkgs.esbuild
2728
];
2829
}

spago.dhall

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[ "aff"
44
, "distributive"
55
, "effect"
6-
, "foldable-traversable"
76
, "fork"
87
, "halogen"
98
, "halogen-hooks"
@@ -14,7 +13,6 @@
1413
, "tailrec"
1514
, "transformers"
1615
, "tuples"
17-
, "unsafe-coerce"
1816
, "unsafe-reference"
1917
]
2018
, packages = ./packages.dhall

0 commit comments

Comments
 (0)