Skip to content

Conversation

@afcondon
Copy link

Full disclosure, I, Andrew, had Claude, an LLM, do this work and prepare the PR. However, i am using the resulting PureScript Lua build now and it is working fine in my limited examples.

Migrate the test PureScript project to use the new spago.yaml format, enabling compatibility with spago 0.93+ which dropped support for dhall-based configuration.

Changes:

  • Add test/ps/spago.yaml with extraPackages pointing to Lua-compatible forks (purescript-lua-prelude, purescript-lua-effect, etc.)
  • Update Golden/Spec.hs to use spago build instead of the deprecated spago build -u '-g corefn' (new spago generates corefn by default)
  • Update .gitignore to exclude spago build artifacts (library dependencies) while keeping Golden.* test directories
  • Regenerate golden files with updated package versions

The Lua-compatible packages are sourced from:

Migrate the test PureScript project to use the new spago.yaml format,
enabling compatibility with spago 0.93+ which dropped support for
dhall-based configuration.

Changes:
- Add test/ps/spago.yaml with extraPackages pointing to Lua-compatible
  forks (purescript-lua-prelude, purescript-lua-effect, etc.)
- Update Golden/Spec.hs to use `spago build` instead of the deprecated
  `spago build -u '-g corefn'` (new spago generates corefn by default)
- Update .gitignore to exclude spago build artifacts (library
  dependencies) while keeping Golden.* test directories
- Regenerate golden files with updated package versions

The Lua-compatible packages are sourced from:
- https://github.com/Unisay/purescript-lua-*
- https://github.com/purescript-lua/purescript-lua-*

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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