Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 13 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

- name: Cache PureScript dependencies
uses: actions/cache@v2
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v21
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: |
.spago
output
determinate: false

- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v13

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- name: Checkout registry-dev
uses: actions/checkout@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Install test dependencies
run: npm ci

- name: Build source
run: npm run build

- name: Build examples
run: npm run build:examples
repository: purescript/registry-dev
ref: master
path: registry-dev

- name: Build tests
run: npm run build:test
- run: nix develop -c spago build

- name: Run tests
run: npm run test
- run: nix develop -c spago test
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ Bugfixes:

Other improvements:

## [0.6.4] - 2026-01-28

Other improvements:

- Migrate from spago.dhall to spago.yaml
- Upgrade dependencies for PureScript package set 70.0.0
- Widen dependency bounds for compatibility with halogen 7 (`aff >=7.0.0`, `parallel >=6.0.0`)

## [0.6.0] - 2022-05-02

Breaking changes (😱!!!):
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ You can install Halogen Hooks with Spago:
spago install halogen-hooks
```

If Halogen Hooks is not available in your package set, add it to your project's `packages.dhall` file:

```dhall
let additions =
{ halogen-hooks =
{ dependencies = [ "halogen" ]
, repo = "https://github.com/thomashoneyman/purescript-halogen-hooks.git"
, version = "main"
}
}
If Halogen Hooks is not available in your package set, add it to your project's `spago.yaml`:

```yaml
workspace:
extraPackages:
halogen-hooks:
git: https://github.com/thomashoneyman/purescript-halogen-hooks.git
ref: main
dependencies:
- halogen
```

## Quick start
Expand Down
20 changes: 0 additions & 20 deletions examples/examples.dhall

This file was deleted.

33 changes: 33 additions & 0 deletions examples/spago.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package:
name: halogen-hooks-examples
dependencies:
- aff: ">=8.0.0 <9.0.0"
- argonaut: ">=9.0.0 <10.0.0"
- avar: ">=5.0.1 <6.0.0"
- datetime: ">=6.1.0 <7.0.0"
- effect: ">=4.0.0 <5.0.0"
- either: ">=6.1.0 <7.0.0"
- halogen: ">=7.0.0 <8.0.0"
- halogen-storybook: ">=2.0.0 <3.0.0"
- prelude: ">=6.0.2 <7.0.0"
- profunctor-lenses: ">=8.0.0 <9.0.0"
- random: ">=6.0.0 <7.0.0"
- web-events: ">=4.0.0 <5.0.0"
- web-storage: ">=5.0.0 <6.0.0"
publish:
version: 0.0.0
license: MIT
location:
githubOwner: thomashoneyman
githubRepo: purescript-halogen-hooks
workspace:
packageSet:
registry: 70.0.0
extraPackages:
halogen-storybook:
git: https://github.com/rnons/purescript-halogen-storybook.git
ref: v2.0.0
dependencies:
- foreign-object
- halogen
- routing
53 changes: 37 additions & 16 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 26 additions & 31 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,35 @@
description = "Halogen Hooks";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-22.05";
flake-utils = {
url = "github:numtide/flake-utils";
};
easy-purescript-nix = {
url = "github:justinwoo/easy-purescript-nix";
flake = false;
nixpkgs.url = "github:NixOS/nixpkgs/release-25.11";
flake-utils.url = "github:numtide/flake-utils";
purescript-overlay = {
url = "github:thomashoneyman/purescript-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, easy-purescript-nix, flake-utils, ... }: let
name = "halogen-hooks";
supportedSystems = ["aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
in
flake-utils.lib.eachSystem supportedSystems (
system: let
pkgs = import nixpkgs {inherit system;};
pursPkgs = import easy-purescript-nix {inherit pkgs;};
outputs = { self, nixpkgs, flake-utils, purescript-overlay }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ purescript-overlay.overlays.default ];
};
in {
devShells = {
default = pkgs.mkShell {
inherit name;
packages = [
pkgs.nodejs-16_x
pkgs.esbuild

pkgs.nodePackages.bower

pursPkgs.purs
pursPkgs.spago
pursPkgs.purs-tidy
];
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [
git
purs
purescript-language-server
purs-tidy
spago-unstable
];
};
}
);

checks.purescript-format = pkgs.runCommand "purescript-format" { buildInputs = [ pkgs.purs-tidy ]; } ''
${pkgs.purs-tidy}/bin/purs-tidy check src test examples
touch $out
'';
});
}
Loading