Title: [fork-ffi] arrays: Data.Array.ST.clone is missing from the fork · Issue #267 · purescript-lua/purescript-lua · GitHub
Open Graph Title: [fork-ffi] arrays: Data.Array.ST.clone is missing from the fork · Issue #267 · purescript-lua/purescript-lua
X Title: [fork-ffi] arrays: Data.Array.ST.clone is missing from the fork · Issue #267 · purescript-lua/purescript-lua
Description: Problem Upstream purescript-arrays v7.3.0 exports Data.Array.ST.clone (backed by the cloneImpl :: STFn1 (STArray h a) h (STArray h a) foreign). The Lua fork tracks the 7.3.0 sources but has neither the export nor the foreign, so code wri...
Open Graph Description: Problem Upstream purescript-arrays v7.3.0 exports Data.Array.ST.clone (backed by the cloneImpl :: STFn1 (STArray h a) h (STArray h a) foreign). The Lua fork tracks the 7.3.0 sources but has neither...
X Description: Problem Upstream purescript-arrays v7.3.0 exports Data.Array.ST.clone (backed by the cloneImpl :: STFn1 (STArray h a) h (STArray h a) foreign). The Lua fork tracks the 7.3.0 sources but has neither...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/267
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[fork-ffi] arrays: Data.Array.ST.clone is missing from the fork","articleBody":"## Problem\n\nUpstream `purescript-arrays` v7.3.0 exports `Data.Array.ST.clone` (backed by the `cloneImpl :: STFn1 (STArray h a) h (STArray h a)` foreign). The Lua fork tracks the 7.3.0 sources but has neither the export nor the foreign, so code written against the registry package fails to compile against the fork. Found by the #186 audit's upstream diff (registry baseline 77.8.0 vs fork `src/`), where this was the only missing value export in arrays.\n\n## Approach\n\nRestore `clone`/`cloneImpl` as upstream declares them. The implementation is the same copy the fork already uses for `thawImpl`/`freezeImpl` (`copyImpl` in `Data/Array/ST.lua`), following the STFn convention: a 1-ary entry that performs the copy directly. Extend the `test/regression/array_st.lua` guard with a `cloneImpl` check, release a patch, and bump the package set.\n\n## Prerequisites / Relations\n\nNone blocking. Found by the #186 audit's upstream diff (closed). The fix ships as an arrays fork patch release plus a package-set bump, the release shape of purescript-lua/purescript-lua-arrays#3.\n\n## Verification / Measurement\n\nThe regression guard covers `cloneImpl` (copies, independent of the source), and a program using `Data.Array.ST.clone` compiles and runs against the fork.\n","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-07-13T13:53:48Z","url":"https://github.com/purescript-lua/purescript-lua/issues/267"}
| 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:9e4e47ed-1a68-a1d9-1de1-653e361d2f92 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9D8:ADA9D:954573:C339AF:6B00E052 |
| html-safe-nonce | c4fd490da6d4d4a79a5e2e58d77b367139429f9cae76e702369ce738d9f2ae26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUQ4OkFEQTlEOjk1NDU3MzpDMzM5QUY6NkIwMEUwNTIiLCJ2aXNpdG9yX2lkIjoiMTA3MjUyOTEwNDc1NzU2MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 455629c2ac9f605976bbd9644f201668a1cc1be8666295ffaf59ec9e4d7d869f |
| hovercard-subject-tag | issue:4874300569 |
| 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/267/issue_layout |
| twitter:image | https://opengraph.githubassets.com/39609c11a6a5afd6f443153e0d7c7d6cf81040dbd0e96ceede3ffa93cb7e9350/purescript-lua/purescript-lua/issues/267 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/39609c11a6a5afd6f443153e0d7c7d6cf81040dbd0e96ceede3ffa93cb7e9350/purescript-lua/purescript-lua/issues/267 |
| og:image:alt | Problem Upstream purescript-arrays v7.3.0 exports Data.Array.ST.clone (backed by the cloneImpl :: STFn1 (STArray h a) h (STArray h a) foreign). The Lua fork tracks the 7.3.0 sources but has neither... |
| 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