Title: coroutine: bring purescript-lua-coroutine to production readiness · Issue #72 · purescript-lua/purescript-lua · GitHub
Open Graph Title: coroutine: bring purescript-lua-coroutine to production readiness · Issue #72 · purescript-lua/purescript-lua
X Title: coroutine: bring purescript-lua-coroutine to production readiness · Issue #72 · purescript-lua/purescript-lua
Description: Problem The purescript-lua-coroutine fork is an early import (two commits: initial sources + a README) that was never modernised alongside the rest of the ecosystem. It currently fails to build against the current pslua compiler and is n...
Open Graph Description: Problem The purescript-lua-coroutine fork is an early import (two commits: initial sources + a README) that was never modernised alongside the rest of the ecosystem. It currently fails to build aga...
X Description: Problem The purescript-lua-coroutine fork is an early import (two commits: initial sources + a README) that was never modernised alongside the rest of the ecosystem. It currently fails to build aga...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/72
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"coroutine: bring purescript-lua-coroutine to production readiness","articleBody":"## Problem\n\nThe `purescript-lua-coroutine` fork is an early import (two commits: initial sources + a README) that was never modernised alongside the rest of the ecosystem. It currently fails to build against the current pslua compiler and is not part of the published package set.\n\nCurrent state:\n\n- Pins ancient package sets in `packages.dhall`: `upstream-ps` at `psc-0.15.9-20230629` and `upstream-lua` at a 2023 release under the **old `Unisay/` org** (`Unisay/purescript-lua-package-sets` `psc-0.15.9-20230706`).\n- Through that stale set it resolves `prelude v6.0.2`, whose `Data/Unit.lua` ships `return {unit = nil}`. The current pslua linker rejects it:\n\n```\nError parsing foreign file \".../prelude/v6.0.2/src/Data/Unit.lua\":\n| return {unit = nil}\n| ^ unexpected 'n', expecting '(' or white space\n```\n\nThis is the `unit = nil` -> `unit = {}` change (prelude >= v7.2.0); on the current prelude it goes away.\n- No ecosystem canon: no `treefmt.nix`, no `.githooks/`, no `.github/workflows/` (CI), no `AGENTS.md`.\n- Not present in `purescript-lua-package-sets` `src/packages.dhall`.\n\nSurfaced while bumping the `pslua` dev input across the ecosystem: the rollout build gate caught coroutine and skipped it (reverted its lock), so its `main` branch is unchanged.\n\n## Approach\n\nProduction-readiness checklist:\n\n- [ ] Bump `packages.dhall` to the current sets (latest `purescript/package-sets` + latest `purescript-lua/purescript-lua-package-sets` release); drop the `sha256:` annotations so spago re-freezes.\n- [ ] Confirm it builds and links with the current pslua (`spago build`); the `unit = nil` linker error should resolve on the current prelude.\n- [ ] Apply the ecosystem canon: `treefmt.nix` (`nix fmt`), tracked `.githooks/pre-commit` + `core.hooksPath`, a CI workflow, `AGENTS.md`, and the org-link migration (`Unisay/` -> `purescript-lua/`).\n- [ ] Pin the `pslua` flake input to current main, for consistency with the rest of the forks.\n- [ ] Add/verify `scripts/build` + `scripts/test` and luacheck the generated Lua.\n- [ ] Cut a release tag and add `coroutine` to `purescript-lua-package-sets` `src/packages.dhall`.\n\n## Prerequisites / Relations\n\nIndependent — package-set-level fork work with no ordering dependency on the compiler perf/optimizer issues.\n\n## Verification / Measurement\n\n`spago build` links the fork against the current pslua with the `unit = nil` linker error gone (resolved by the current prelude), the generated Lua passes luacheck, and a release tag is cut with `coroutine` added to `purescript-lua-package-sets` `src/packages.dhall` so the fork is resolvable from the published set.\n","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-06-15T10:41:21Z","url":"https://github.com/purescript-lua/purescript-lua/issues/72"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c237df05-8b94-256e-2262-237966e65ebe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA30:785A9:679FEF:855B9D:6B00E03D |
| html-safe-nonce | 7bfeb190581a01dc716f9e1021cf667194826dc136183790fcc2bd980d3d8ea8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTMwOjc4NUE5OjY3OUZFRjo4NTVCOUQ6NkIwMEUwM0QiLCJ2aXNpdG9yX2lkIjoiNjkyNzAwMjA3ODAyMzgzNTcwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f4be41296fd82cbb3871ae580ab74d131117900ce0d7170dd67b5568d4857e69 |
| hovercard-subject-tag | issue:4664312208 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-lua/purescript-lua/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6914716d1600e694cc65bbf49a06033880ee6408231f1884dd3e16ed0a6a2662/purescript-lua/purescript-lua/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6914716d1600e694cc65bbf49a06033880ee6408231f1884dd3e16ed0a6a2662/purescript-lua/purescript-lua/issues/72 |
| og:image:alt | Problem The purescript-lua-coroutine fork is an early import (two commits: initial sources + a README) that was never modernised alongside the rest of the ecosystem. It currently fails to build aga... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Unisay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git |
| octolytics-dimension-user_id | 131581790 |
| octolytics-dimension-user_login | purescript-lua |
| octolytics-dimension-repository_id | 587200487 |
| octolytics-dimension-repository_nwo | purescript-lua/purescript-lua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 587200487 |
| octolytics-dimension-repository_network_root_nwo | purescript-lua/purescript-lua |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width