Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: purescript/purescript-exceptions
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: purescript-lua/purescript-lua-exceptions
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 15 commits
  • 22 files changed
  • 3 contributors

Commits on Jul 6, 2023

  1. Init pslua sources

    Unisay committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    081dd8f View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2023

  1. bugfix

    Unisay committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    ca7c86b View commit details
    Browse the repository at this point in the history
  2. spago upgrade-set

    Unisay committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    1a7894f View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Wrapped foreigns

    Unisay committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    d4422e7 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2026

  1. Configuration menu
    Copy the full SHA
    60bebfd View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from Unisay/chore/align-overlay

    chore: align build tooling (nix CI, fail-fast scripts, purescript-overlay)
    Unisay authored Jun 14, 2026
    Configuration menu
    Copy the full SHA
    bb6e107 View commit details
    Browse the repository at this point in the history
  3. chore: align CI to hardened canon, add AGENTS.md + CLAUDE.md

    CI: drop accept-flake-config (supply-chain risk; caches already pinned),
    run luacheck with --std lua51 --no-unused-args (matches the Lua 5.1 target
    and the curried-FFI idiom), invoke the test step via bash so it no longer
    needs the execute bit.
    
    AGENTS.md is the single instruction file the coding agents read natively;
    CLAUDE.md is a one-line @AGENTS.md import so Claude Code shares it. Also
    removes dead JavaScript-era package files. Tooling and docs only, no src/.
    Unisay committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    1ed1c0d View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2 from Unisay/chore/agents-md-and-canon-ci

    chore: align CI to the hardened canon, add AGENTS.md
    Unisay authored Jun 14, 2026
    Configuration menu
    Copy the full SHA
    9123e57 View commit details
    Browse the repository at this point in the history
  5. chore: point pslua + package-set links at purescript-lua org

    Repos moved from Unisay/* to the purescript-lua org. Update the pslua
    flake input and lockfile owner (same rev 94c13ce), the packages.dhall
    upstream-lua release URL, and the AGENTS.md links, so nothing relies on
    the old-owner redirect.
    Unisay committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    cfac36e View commit details
    Browse the repository at this point in the history
  6. Merge pull request #3 from purescript-lua/chore/migrate-org-links

    chore: point pslua + package-set links at purescript-lua org
    Unisay authored Jun 14, 2026
    Configuration menu
    Copy the full SHA
    1869163 View commit details
    Browse the repository at this point in the history
  7. 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.
    Unisay committed Jun 14, 2026
    Configuration menu
    Copy the full SHA
    7eba933 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2026

  1. Merge pull request #4 from purescript-lua/chore/treefmt

    chore: add treefmt formatting (nix fmt + pre-commit + CI check)
    Unisay authored Jun 15, 2026
    Configuration menu
    Copy the full SHA
    84612f4 View commit details
    Browse the repository at this point in the history
  2. 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.
    Unisay committed Jun 15, 2026
    Configuration menu
    Copy the full SHA
    d8fbd86 View commit details
    Browse the repository at this point in the history
  3. 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.
    Unisay committed Jun 15, 2026
    Configuration menu
    Copy the full SHA
    c44fdbd View commit details
    Browse the repository at this point in the history
  4. fix: Effect.Exception FFI semantics for Lua 5.1

    - catchException: run the handler Effect (trailing `()`) instead of
      returning the unexecuted thunk; this also fixes the library's `try`.
    - throwException: raise with level 0 so Lua does not prepend
      "chunk:line: " to the message across the pcall round-trip.
    - name: return the JS fallback constant "Error" (the string-Error model
      carries no name field) instead of the message.
    - errorWithCause: keep the message pristine; the cause is unobservable
      through this binding (no `cause` accessor), so it is no longer folded
      into the message.
    
    Adds a Lua 5.1 regression guard (test/regression/exception.lua) and a
    scripts/test runner.
    
    Fixes purescript-lua/purescript-lua#81
    Fixes purescript-lua/purescript-lua#82
    Fixes purescript-lua/purescript-lua#83
    Fixes purescript-lua/purescript-lua#84
    Unisay committed Jun 15, 2026
    Configuration menu
    Copy the full SHA
    3127aa2 View commit details
    Browse the repository at this point in the history
Loading