Title: [fork-ffi] Ship a default @inline directive pack for the prelude/core forks · Issue #242 · purescript-lua/purescript-lua · GitHub
Open Graph Title: [fork-ffi] Ship a default @inline directive pack for the prelude/core forks · Issue #242 · purescript-lua/purescript-lua
X Title: [fork-ffi] Ship a default @inline directive pack for the prelude/core forks · Issue #242 · purescript-lua/purescript-lua
Description: Problem A default directive pack for purescript-prelude and core covers the usual suspects: dictionary methods (bindFlipped arity=1, semigroupFn.append arity=2), identities (categoryFn.identity always, otherwise always), generics machine...
Open Graph Description: Problem A default directive pack for purescript-prelude and core covers the usual suspects: dictionary methods (bindFlipped arity=1, semigroupFn.append arity=2), identities (categoryFn.identity alw...
X Description: Problem A default directive pack for purescript-prelude and core covers the usual suspects: dictionary methods (bindFlipped arity=1, semigroupFn.append arity=2), identities (categoryFn.identity alw...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/242
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[fork-ffi] Ship a default @inline directive pack for the prelude/core forks","articleBody":"## Problem\n\nA default directive pack for `purescript-prelude` and core covers the usual suspects: dictionary methods (`bindFlipped arity=1`, `semigroupFn.append arity=2`), identities (`categoryFn.identity always`, `otherwise always`), generics machinery, and ST/Ref glue. These force-inline the tiny, ubiquitous dictionary-parameterized combinators that otherwise fall below the size threshold and block downstream specialization. pslua has no such pack, so even with graduated directives these combinators stay un-inlined unless a user annotates them.\n\n## Approach\n\nAssemble a pslua directive pack for the Lua forks of prelude and core, tuned to pslua's model and net of what #180's automatic monad specialization already covers. Ship it either as the directives file the compiler loads by default for these packages, or as module-header `@inline export` pragmas in the fork sources. Release the affected forks and bump the package set.\n\n## Prerequisites / Relations\n\nBlocked by #232 (the graduated `@inline` directives issue): the pack is written in that DSL. Package-set work: fork edits plus a coordinated release and set bump, in the shape of #176 and #186. Pairs with the directive auto-inference issue.\n\n## Verification / Measurement\n\nWith the pack loaded, a representative program's common dictionary combinators (`append`, `identity`, flipped `bind`) inline away and linked output shrinks; eval goldens across the corpus stay unchanged. The size delta is the headline number, captured before/after through #172.\n","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-07-11T12:04:30Z","url":"https://github.com/purescript-lua/purescript-lua/issues/242"}
| 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:96ce6fee-36d1-7553-b40c-efb9f24a5de8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 964E:1EC9BC:54984F:6DA90F:6B00DB6F |
| html-safe-nonce | e8d16d4c8493ae4c83d7357d3ac9cc4e874243c1ab835345cc30fd323fa4cde0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjRFOjFFQzlCQzo1NDk4NEY6NkRBOTBGOjZCMDBEQjZGIiwidmlzaXRvcl9pZCI6IjE0MTEwMDY5NDE2MjIyMjk4NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 27789e7a945b01cecd61b96126ce8dfc5cf81d94e2cd4850f8b435095ce2fbbd |
| hovercard-subject-tag | issue:4862147721 |
| 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/242/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6e8b44f8177411f25259d01122b9a55284349fd4787070ac4097a020e420fb10/purescript-lua/purescript-lua/issues/242 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6e8b44f8177411f25259d01122b9a55284349fd4787070ac4097a020e420fb10/purescript-lua/purescript-lua/issues/242 |
| og:image:alt | Problem A default directive pack for purescript-prelude and core covers the usual suspects: dictionary methods (bindFlipped arity=1, semigroupFn.append arity=2), identities (categoryFn.identity alw... |
| 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