Skip to content

Build and deploy with the miso tool (setup-miso) - #33

Merged
dmjio merged 1 commit into
mainfrom
setup-miso
Nov 5, 2026
Merged

dmjio merged 1 commit into
mainfrom
setup-miso

Conversation

@dmjio

@dmjio dmjio commented Nov 5, 2026

Copy link
Copy Markdown
Member

Makes the sampler a project of the miso tool, which builds it with MicroHs and no GHC. The site is then built in CI with setup-miso and deployed from that build.

  • miso.yml: the sampler as a miso project, target: browser, depending on miso. app.cabal and the Makefile stay as they are for the GHC builds.
  • miso-static/index.html: the page for the miso build. static/index.html loads the GHC build's index.js as a module; this one loads it as a plain script, as the miso tool's templates do.
  • README: building with the miso tool, and setup-miso@v1 in CI.

Still to add: .github/workflows/main.yml. The token used here can't push workflow files, so this needs one web edit. Add a miso job that runs haskell-miso/setup-miso@v1 and uploads public/; move the Pages upload out of build; make deploy need miso.

🤖 Generated with Claude Code

- miso.yml: the sampler as a project of the miso tool (MicroHs, no GHC),
  with its own index.html in miso-static/ (static/index.html loads the
  GHC build's index.js as a module).
- README: building with the miso tool, and setup-miso in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dmjio dmjio changed the title Build and deploy with the miso tool (setup-miso) Build and deploy with the miso tool (setup-miso) Nov 5, 2026
@dmjio
dmjio merged commit 48a045c into main Nov 5, 2026
2 checks passed
@dmjio
dmjio deleted the setup-miso branch November 5, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant