-
Notifications
You must be signed in to change notification settings - Fork 24
Comparing changes
Open a pull request
base repository: purescript/purescript-st
base: master
head repository: purescript-lua/purescript-lua-st
compare: master
- 9 commits
- 29 files changed
- 3 contributors
Commits on Apr 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 25962be - Browse repository at this point
Copy the full SHA 25962beView commit details
Commits on Mar 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for efa77c2 - Browse repository at this point
Copy the full SHA efa77c2View commit details
Commits on Mar 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3c56436 - Browse repository at this point
Copy the full SHA 3c56436View commit details
Commits on Jun 14, 2026
-
feat: bring st to the canon and add ST unit tests
Migrate purescript-lua-st off the JavaScript-era tooling onto the package-set canon: an overlay flake (purs 0.15.16, spago 0.21.0, Lua 5.1, pslua at the current main), hardened CI, scripts/build, AGENTS.md and CLAUDE.md, a clean .gitignore, and the org package-set URL. Drop the .eslintrc, package.json and the JavaScript FFI files. Add a systematic test suite: spago-test.dhall compiles test/Main.purs to dist/test.lua through pslua and scripts/test runs it under Lua 5.1. It covers STRef new/read/write/modify/modify', ST.run recursion, ST.for (hi-exclusive, lo-inclusive, empty range), ST.while and ST.foreach. Fixes surfaced by the new tests and luacheck: ST.for looped over an inclusive upper bound (for i = lo, hi) though the contract is hi-exclusive, so it ran one extra iteration -- corrected to hi - 1. Declare the effect dependency that Control.Monad.ST.Global needs, and wrap an over-long line in the Uncurried FFI so luacheck passes.
Configuration menu - View commit details
-
Copy full SHA for 1e40a04 - Browse repository at this point
Copy the full SHA 1e40a04View commit details -
Merge pull request #1 from purescript-lua/chore/canon-and-tests
feat: bring st to the canon and add ST unit tests
Configuration menu - View commit details
-
Copy full SHA for 850429c - Browse repository at this point
Copy the full SHA 850429cView commit details -
chore: add treefmt formatting (nix fmt) and format the tree
Wire treefmt via treefmt-nix: nixfmt, dhall format, purs-tidy (.tidyrc.json) and LuaFormatter for the FFI (.lua-format, kept over StyLua because it preserves the parentheses pslua's parser needs). `nix fmt` formats; the dev shell installs a content-based pre-commit hook and CI runs `nix fmt && git diff --exit-code` (content-based, since the in-place formatters bump mtime and would trip treefmt --fail-on-change). Lua lines budget 130 cols, matching the raised `luacheck --max-line-length`. The bulk of the diff is the first format pass.
Configuration menu - View commit details
-
Copy full SHA for 438e507 - Browse repository at this point
Copy the full SHA 438e507View commit details
Commits on Jun 15, 2026
-
Merge pull request #2 from purescript-lua/chore/treefmt
chore: add treefmt formatting (nix fmt + pre-commit + CI check)
Configuration menu - View commit details
-
Copy full SHA for b73b949 - Browse repository at this point
Copy the full SHA b73b949View commit details -
chore: harden pre-commit hook (tracked .githooks/ + core.hooksPath)
Replace the dev-shell installer that wrote .git/hooks/pre-commit with a tracked .githooks/pre-commit wired via `git config core.hooksPath .githooks`. Fixes three issues with the old hook: it gated on `[ -d .git ]` (false in worktrees/submodules where .git is a file), it clobbered any existing .git/hooks/pre-commit on every `nix develop`, and `nix fmt … || exit 0` swallowed real formatter failures. The new hook skips only when `nix` is absent (CI is the authoritative gate) and otherwise blocks on a `nix fmt` failure or reformat.
Configuration menu - View commit details
-
Copy full SHA for 6d41fd2 - Browse repository at this point
Copy the full SHA 6d41fd2View commit details -
chore: bump pslua dev input to 62e3653
Toolchain consistency: pin the pslua dev flake input to the current compiler main across the ecosystem. flake.lock only; the package set consumes sources + FFI, not this dev input, so no re-tag is needed.
Configuration menu - View commit details
-
Copy full SHA for ef28d54 - Browse repository at this point
Copy the full SHA ef28d54View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master