Title: [fork-ffi] exceptions: errorWithName is missing from the fork · Issue #269 · purescript-lua/purescript-lua · GitHub
Open Graph Title: [fork-ffi] exceptions: errorWithName is missing from the fork · Issue #269 · purescript-lua/purescript-lua
X Title: [fork-ffi] exceptions: errorWithName is missing from the fork · Issue #269 · purescript-lua/purescript-lua
Description: Problem Upstream purescript-exceptions v6.1.0 exports errorWithName :: String -> String -> Error and the fork does not, so code written against the registry package fails to compile against the fork. Found by the #186 audit's upstream di...
Open Graph Description: Problem Upstream purescript-exceptions v6.1.0 exports errorWithName :: String -> String -> Error and the fork does not, so code written against the registry package fails to compile against the for...
X Description: Problem Upstream purescript-exceptions v6.1.0 exports errorWithName :: String -> String -> Error and the fork does not, so code written against the registry package fails to compile against t...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/269
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[fork-ffi] exceptions: errorWithName is missing from the fork","articleBody":"## Problem\n\nUpstream `purescript-exceptions` v6.1.0 exports `errorWithName :: String -> String -> Error` and the fork does not, so code written against the registry package fails to compile against the fork. Found by the #186 audit's upstream diff; exceptions is otherwise foreign-for-foreign identical to upstream.\n\n## Approach\n\nThe fork models `Error` as a plain Lua string: `error`/`errorWithCause` return the message, `name` always answers `\"Error\"`, and `errorWithCause`'s cause is documented as unobservable through this binding. The minimal restoration follows the same precedent: `errorWithName name msg` returns `msg` and the name stays unobservable, documented in the FFI like the cause. If observable names turn out to matter, that is a separate decision to upgrade the whole `Error` representation (a table carrying `name`/`message`/`cause`), which touches `throwException`/`catchException`/`showErrorImpl` and the Lua-side `error`/`pcall` round-trip, and would be its own issue. Add a regression check, release a patch, bump the set.\n\n## Prerequisites / Relations\n\nNone blocking. Found by the #186 audit's upstream diff (closed). Ships as an exceptions fork patch release plus a package-set bump; an observable-name upgrade of the whole `Error` representation would be a separate issue.\n\n## Verification / Measurement\n\nA program using `errorWithName` compiles against the fork, and the regression tests pin `message (errorWithName n m) == m` plus the documented `name` behaviour.\n","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-07-13T13:53:51Z","url":"https://github.com/purescript-lua/purescript-lua/issues/269"}
| 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:258dc9dc-70cc-3c28-4302-a13ab1afc90b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABF4:34EA7D:9DF225:CC1934:6B00E059 |
| html-safe-nonce | 82538c4a43161bde423db9e9f20e487d8582bf4b33f231ba38cd230eab228314 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkY0OjM0RUE3RDo5REYyMjU6Q0MxOTM0OjZCMDBFMDU5IiwidmlzaXRvcl9pZCI6IjIxNTQyNDAwMjQxOTM4NTE0ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5a097fadf992d03f51328142834676f867f957af9b503533a848a401fcbc6a20 |
| hovercard-subject-tag | issue:4874301003 |
| 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/269/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6c1373f819ce24d8aacbdd7d736e934a04440edc3d3f5e5627ca62180625aef/purescript-lua/purescript-lua/issues/269 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6c1373f819ce24d8aacbdd7d736e934a04440edc3d3f5e5627ca62180625aef/purescript-lua/purescript-lua/issues/269 |
| og:image:alt | Problem Upstream purescript-exceptions v6.1.0 exports errorWithName :: String -> String -> Error and the fork does not, so code written against the registry package fails to compile against the for... |
| 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