Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 166d229

Browse files
committed
Use TH-enabled build, remove custom miso
1 parent 898aa21 commit 166d229

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
4343
- name: wasm32-wasi-ghc
4444
run: |
45-
ghcup config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/develop/ghcup-cross-0.0.8.yaml
46-
ghcup install ghc --set wasm32-wasi-9.10.1 -- $CONFIGURE_ARGS
45+
ghcup config add-release-channel https://raw.githubusercontent.com/amesgen/ghcup-metadata/refs/heads/wasm-th/ghcup-cross-0.0.8.yaml
46+
ghcup install ghc --set wasm32-wasi-9.10.1.20241018 -- $CONFIGURE_ARGS
4747
4848
- uses: dw-labs-org/dart-sass-gha@v1
4949

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ The GHC wasm backend supports the
55
feature, allowing Haskell wasm apps to interop with JavaScript
66
seamlessly in the browser. This repo contains a few examples to
77
demonstrate this ability, all of which based on the
8-
[`miso`](https://haskell-miso.org) frontend framework, using an
9-
unofficial [port](https://github.com/amesgen/miso/tree/remove-th) as
10-
well as an experimental
8+
[`miso`](https://haskell-miso.org) frontend framework as well as
9+
an experimental
1110
[`jsaddle-wasm`](https://github.com/amesgen/jsaddle-wasm) library
1211
under the hood.
1312

@@ -44,7 +43,8 @@ You can set up the toolchain by either:
4443
[`ghc-wasm-meta`](https://gitlab.haskell.org/ghc/ghc-wasm-meta#getting-started-without-nix)
4544
directly to set up ghc head or ghc 9.10
4645
- Using [`ghcup`](https://www.haskell.org/ghcup/guide/#cross-support)
47-
to set up ghc 9.10
46+
to set up ghc 9.10 (9.10.1.20241018 or later, with TemplateHaskell support)
47+
and cabal >=3.15.
4848

4949
Also install [Sass](https://sass-lang.com/install/).
5050

cabal.project

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ packages: . hs2048
22

33
index-state: 2024-09-29T15:37:55Z
44

5+
-- necessary for TemplateHaskell to work
6+
shared: True
7+
8+
-- https://github.com/haskellari/time-compat/issues/37
9+
allow-newer: time-compat:time
10+
511
if arch(wasm32)
612
-- https://github.com/haskellari/splitmix/pull/73
713
source-repository-package
814
type: git
915
location: https://github.com/amesgen/splitmix
1016
tag: 5f5b766d97dc735ac228215d240a3bb90bc2ff75
1117

12-
-- remove TemplateHaskell
13-
source-repository-package
14-
type: git
15-
location: https://github.com/amesgen/miso
16-
tag: 27dd5fc80be9d0a3b80a9ecc81ee3401bc610e01
17-
1818
source-repository-package
1919
type: git
2020
location: https://github.com/amesgen/jsaddle-wasm

flake.lock

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

0 commit comments

Comments
 (0)