Skip to content

Commit 6cd09f0

Browse files
update deps
1 parent 884586b commit 6cd09f0

File tree

16 files changed

+184
-1461
lines changed

16 files changed

+184
-1461
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,22 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
- uses: purescript-contrib/setup-purescript@main
1717

1818
- name: Cache PureScript dependencies
19-
uses: actions/cache@v2
19+
uses: actions/cache@v4
2020
with:
21-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
21+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
2222
path: |
2323
.spago
2424
output
2525
26-
- uses: actions/setup-node@v1
26+
- uses: actions/setup-node@v4
2727
with:
28-
node-version: "12.x"
28+
node-version: "20"
2929

30-
- name: Cache node modules
31-
uses: actions/cache@v2
32-
env:
33-
cache-name: cache-node-modules
34-
with:
35-
# npm cache files are stored in `~/.npm` on Linux/macOS
36-
path: ~/.npm
37-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
38-
restore-keys: |
39-
${{ runner.os }}-build-${{ env.cache-name }}-
40-
${{ runner.os }}-build-
41-
${{ runner.os }}-
42-
43-
- name: Install test dependencies
44-
run: npm ci
45-
46-
- name: Build source
47-
run: npm run build
48-
49-
- name: Build examples
50-
run: npm run build:examples
51-
52-
- name: Build tests
53-
run: npm run build:test
30+
- run: spago build
5431

55-
- name: Run tests
56-
run: npm run test
32+
- run: spago test

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ You can install Halogen Hooks with Spago:
2424
spago install halogen-hooks
2525
```
2626

27-
If Halogen Hooks is not available in your package set, add it to your project's `packages.dhall` file:
28-
29-
```dhall
30-
let additions =
31-
{ halogen-hooks =
32-
{ dependencies = [ "halogen" ]
33-
, repo = "https://github.com/thomashoneyman/purescript-halogen-hooks.git"
34-
, version = "main"
35-
}
36-
}
27+
If Halogen Hooks is not available in your package set, add it to your project's `spago.yaml`:
28+
29+
```yaml
30+
workspace:
31+
extraPackages:
32+
halogen-hooks:
33+
git: https://github.com/thomashoneyman/purescript-halogen-hooks.git
34+
ref: main
35+
dependencies:
36+
- halogen
3737
```
3838
3939
## Quick start

examples/examples.dhall

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/spago.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package:
2+
name: halogen-hooks-examples
3+
dependencies:
4+
- aff: ">=8.0.0 <9.0.0"
5+
- argonaut: ">=9.0.0 <10.0.0"
6+
- avar: ">=5.0.1 <6.0.0"
7+
- datetime: ">=6.1.0 <7.0.0"
8+
- effect: ">=4.0.0 <5.0.0"
9+
- either: ">=6.1.0 <7.0.0"
10+
- halogen: ">=7.0.0 <8.0.0"
11+
- halogen-storybook: ">=2.0.0 <3.0.0"
12+
- prelude: ">=6.0.2 <7.0.0"
13+
- profunctor-lenses: ">=8.0.0 <9.0.0"
14+
- random: ">=6.0.0 <7.0.0"
15+
- web-events: ">=4.0.0 <5.0.0"
16+
- web-storage: ">=5.0.0 <6.0.0"
17+
publish:
18+
version: 0.0.0
19+
license: MIT
20+
location:
21+
githubOwner: thomashoneyman
22+
githubRepo: purescript-halogen-hooks
23+
workspace:
24+
packageSet:
25+
registry: 70.0.0
26+
extraPackages:
27+
halogen-storybook:
28+
git: https://github.com/rnons/purescript-halogen-storybook.git
29+
ref: v2.0.0
30+
dependencies:
31+
- foreign-object
32+
- halogen
33+
- routing

flake.lock

Lines changed: 37 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,35 @@
22
description = "Halogen Hooks";
33

44
inputs = {
5-
nixpkgs.url = "github:nixos/nixpkgs/release-22.05";
6-
flake-utils = {
7-
url = "github:numtide/flake-utils";
8-
};
9-
easy-purescript-nix = {
10-
url = "github:justinwoo/easy-purescript-nix";
11-
flake = false;
5+
nixpkgs.url = "github:NixOS/nixpkgs/release-25.11";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
purescript-overlay = {
8+
url = "github:thomashoneyman/purescript-overlay";
9+
inputs.nixpkgs.follows = "nixpkgs";
1210
};
1311
};
1412

15-
outputs = { self, nixpkgs, easy-purescript-nix, flake-utils, ... }: let
16-
name = "halogen-hooks";
17-
supportedSystems = ["aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
18-
in
19-
flake-utils.lib.eachSystem supportedSystems (
20-
system: let
21-
pkgs = import nixpkgs {inherit system;};
22-
pursPkgs = import easy-purescript-nix {inherit pkgs;};
13+
outputs = { self, nixpkgs, flake-utils, purescript-overlay }:
14+
flake-utils.lib.eachDefaultSystem (system:
15+
let
16+
pkgs = import nixpkgs {
17+
inherit system;
18+
overlays = [ purescript-overlay.overlays.default ];
19+
};
2320
in {
24-
devShells = {
25-
default = pkgs.mkShell {
26-
inherit name;
27-
packages = [
28-
pkgs.nodejs-16_x
29-
pkgs.esbuild
30-
31-
pkgs.nodePackages.bower
32-
33-
pursPkgs.purs
34-
pursPkgs.spago
35-
pursPkgs.purs-tidy
36-
];
37-
};
21+
devShells.default = pkgs.mkShell {
22+
packages = with pkgs; [
23+
git
24+
purs
25+
purescript-language-server
26+
purs-tidy
27+
spago-unstable
28+
];
3829
};
39-
}
40-
);
30+
31+
checks.purescript-format = pkgs.runCommand "purescript-format" { buildInputs = [ pkgs.purs-tidy ]; } ''
32+
${pkgs.purs-tidy}/bin/purs-tidy check src test examples
33+
touch $out
34+
'';
35+
});
4136
}

0 commit comments

Comments
 (0)