René's URL Explorer Experiment


Title: docs: Notes for four Lua-backend invariants (#44) by Unisay · Pull Request #128 · purescript-lua/purescript-lua · GitHub

Open Graph Title: docs: Notes for four Lua-backend invariants (#44) by Unisay · Pull Request #128 · purescript-lua/purescript-lua

X Title: docs: Notes for four Lua-backend invariants (#44) by Unisay · Pull Request #128 · purescript-lua/purescript-lua

Description: Summary Continues #44, the Lua-backend batch. Four Medium-priority invariants get a GHC-style Note, each cited from the sites that depend on it. Comments only, so generated code, goldens, and eval oracles are unchanged. Note [Lua reserved words as foreign export keys] in Backend.Lua.Key. A foreign export whose name is a Lua keyword has to appear as a bracketed key ({ ["for"] = ... }). The Note ties together the three modules that must agree on the keyword set: Name.reserved/Name.makeSafe, the Key parser, and Key.toSafeName as used by the backend. Note [Lua operator precedence] in Backend.Lua.Types. The Lua 5.x precedence table was an anonymous comment block; this titles it and explains that the HasPrecedence instances transcribe it and the printer's wrapPrec reads it to decide parenthesisation. Cited from Printer.printBinaryOp. Note [Foreign module source format] in Backend.Lua.Linker.Foreign. Calls out the two easy-to-miss FFI-file constraints, each enforced by a separate parser: every export value is paren-wrapped (so valueParser can balance it), and the optional header contains no return (so the break isReturn split works). Cited from both parser sites and the backend consumer. Note [Nullary functions and Prim.undefined] in Backend.Lua. ParamUnused becoming a zero-parameter function and a Prim.undefined argument becoming a zero-argument call are two halves of one arity-changing convention that must stay in sync. Only one half was commented before. Checklist Added a changelog.d/ fragment for any user-facing change (scriv create in the dev shell), or this change ships nothing releasable (CI, docs, or an internal refactor). In the dev shell (nix develop), fourmolu -i lib/ exe/ test/ and hlint lib/ exe/ test/ are clean. In the dev shell, cabal test all passes; structural goldens were re-accepted on purpose if codegen moved (PSLUA_GOLDEN_ACCEPT=1), and eval/golden.txt still holds.

Open Graph Description: Summary Continues #44, the Lua-backend batch. Four Medium-priority invariants get a GHC-style Note, each cited from the sites that depend on it. Comments only, so generated code, goldens, and eval ...

X Description: Summary Continues #44, the Lua-backend batch. Four Medium-priority invariants get a GHC-style Note, each cited from the sites that depend on it. Comments only, so generated code, goldens, and eval ...

Opengraph URL: https://github.com/purescript-lua/purescript-lua/pull/128

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1811b5fe-4ac7-9e1d-bd8d-defe0c2777e6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8348:65478:C9D6BD:10DA165:6B00F9C8
html-safe-nonce3ad3cbc92d1f9468f943d8a96abe405c6e707169f75e171ea7cb258d7275cdea
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzQ4OjY1NDc4OkM5RDZCRDoxMERBMTY1OjZCMDBGOUM4IiwidmlzaXRvcl9pZCI6IjY5NDUxMDYyMTk4NzQ5NzQxNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac762775e931dbc6e7b671cb066a78054422ba28f17ef0a4418a382f184f98278c
hovercard-subject-tagpull_request:3937327397
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/purescript-lua/purescript-lua/pull/128/files
twitter:imagehttps://avatars.githubusercontent.com/u/1009751?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1009751?s=400&v=4
og:image:altSummary Continues #44, the Lua-backend batch. Four Medium-priority invariants get a GHC-style Note, each cited from the sites that depend on it. Comments only, so generated code, goldens, and eval ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git
octolytics-dimension-user_id131581790
octolytics-dimension-user_loginpurescript-lua
octolytics-dimension-repository_id587200487
octolytics-dimension-repository_nwopurescript-lua/purescript-lua
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id587200487
octolytics-dimension-repository_network_root_nwopurescript-lua/purescript-lua
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/purescript-lua/purescript-lua/pull/128/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F128%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F128%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=purescript-lua%2Fpurescript-lua
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/128/files
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/128/files
Reloadhttps://github.com/purescript-lua/purescript-lua/pull/128/files
purescript-luahttps://github.com/purescript-lua
purescript-luahttps://github.com/purescript-lua/purescript-lua
Codehttps://github.com/purescript-lua/purescript-lua
Issues48 (48)https://github.com/purescript-lua/purescript-lua/issues
Pull requestshttps://github.com/purescript-lua/purescript-lua/pulls
Discussionshttps://github.com/purescript-lua/purescript-lua/discussions
Actionshttps://github.com/purescript-lua/purescript-lua/actions
Projectshttps://github.com/purescript-lua/purescript-lua/projects
Security and qualityhttps://github.com/purescript-lua/purescript-lua/security
Insightshttps://github.com/purescript-lua/purescript-lua/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose
Unisayhttps://github.com/Unisay
mainhttps://github.com/purescript-lua/purescript-lua/tree/main
issue-44/notes-lua-backendhttps://github.com/purescript-lua/purescript-lua/tree/issue-44/notes-lua-backend
Conversation 5 https://github.com/purescript-lua/purescript-lua/pull/128
Commits 2 https://github.com/purescript-lua/purescript-lua/pull/128/commits
Checks 2 https://github.com/purescript-lua/purescript-lua/pull/128/checks
Files changed https://github.com/purescript-lua/purescript-lua/pull/128/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/128/files
docs: Notes for four Lua-backend invariants (#44) https://github.com/purescript-lua/purescript-lua/pull/128/files#top
Show all changes 2 commits https://github.com/purescript-lua/purescript-lua/pull/128/files
89ce5f6 docs: Notes for four Lua-backend invariants (#44) Unisay Jun 25, 2026 https://github.com/purescript-lua/purescript-lua/pull/128/commits/89ce5f61c13cfa513109f11b41b5ab9aa06db31e
fa20fdc docs: address Copilot review on #128 (reserved-set wording, grammar) Unisay Jun 25, 2026 https://github.com/purescript-lua/purescript-lua/pull/128/commits/fa20fdcd5d18a31edbe6b35418eba6bf0fcf8a41
Clear filters https://github.com/purescript-lua/purescript-lua/pull/128/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/128/files
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/128/files
20260625_200309_unisay_notes_lua_backend.md https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-278a84bd7cfdf5e4fa1b3d322f458cad3305067b2e7a8755d6b28e7da0a2c1a0
Lua.hs https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
Key.hs https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-4263b8dbe8d1c59fd1d9ca08bce03c69b24b153949db01fa93385fab97aee29a
Foreign.hs https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-db9f6275e54091ae1d1bb56227c508bb91ce74f5b7beca417f7d52549450ef09
Name.hs https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-36551b89cf4e35cef0712511083e4ca2708655bbe44cd645a0cc9ade01750c4c
Printer.hs https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-0580dfe88b5864d2ae5b7e66cf74cc15b3b4421fee8e2f6c210f750f127709e6
Types.hs https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-543c96230f496ee72da8dabd99ae4efface1a758409d701c83d7b2ba21434db0
changelog.d/20260625_200309_unisay_notes_lua_backend.mdhttps://github.com/purescript-lua/purescript-lua/pull/128/files#diff-278a84bd7cfdf5e4fa1b3d322f458cad3305067b2e7a8755d6b28e7da0a2c1a0
View file https://github.com/purescript-lua/purescript-lua/blob/fa20fdcd5d18a31edbe6b35418eba6bf0fcf8a41/changelog.d/20260625_200309_unisay_notes_lua_backend.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/128/{{ revealButtonHref }}
lib/Language/PureScript/Backend/Lua.hshttps://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
View file https://github.com/purescript-lua/purescript-lua/blob/fa20fdcd5d18a31edbe6b35418eba6bf0fcf8a41/lib/Language/PureScript/Backend/Lua.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/128/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-11295f6f97401e5cc1fdfa2a8caa3fc80edc56cd58262d3de010e803f8d3640f
lib/Language/PureScript/Backend/Lua/Key.hshttps://github.com/purescript-lua/purescript-lua/pull/128/files#diff-4263b8dbe8d1c59fd1d9ca08bce03c69b24b153949db01fa93385fab97aee29a
View file https://github.com/purescript-lua/purescript-lua/blob/fa20fdcd5d18a31edbe6b35418eba6bf0fcf8a41/lib/Language/PureScript/Backend/Lua/Key.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/128/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-4263b8dbe8d1c59fd1d9ca08bce03c69b24b153949db01fa93385fab97aee29a
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-4263b8dbe8d1c59fd1d9ca08bce03c69b24b153949db01fa93385fab97aee29a
lib/Language/PureScript/Backend/Lua/Linker/Foreign.hshttps://github.com/purescript-lua/purescript-lua/pull/128/files#diff-db9f6275e54091ae1d1bb56227c508bb91ce74f5b7beca417f7d52549450ef09
View file https://github.com/purescript-lua/purescript-lua/blob/fa20fdcd5d18a31edbe6b35418eba6bf0fcf8a41/lib/Language/PureScript/Backend/Lua/Linker/Foreign.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/128/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-db9f6275e54091ae1d1bb56227c508bb91ce74f5b7beca417f7d52549450ef09
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-db9f6275e54091ae1d1bb56227c508bb91ce74f5b7beca417f7d52549450ef09
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-db9f6275e54091ae1d1bb56227c508bb91ce74f5b7beca417f7d52549450ef09
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-db9f6275e54091ae1d1bb56227c508bb91ce74f5b7beca417f7d52549450ef09
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-db9f6275e54091ae1d1bb56227c508bb91ce74f5b7beca417f7d52549450ef09
lib/Language/PureScript/Backend/Lua/Name.hshttps://github.com/purescript-lua/purescript-lua/pull/128/files#diff-36551b89cf4e35cef0712511083e4ca2708655bbe44cd645a0cc9ade01750c4c
View file https://github.com/purescript-lua/purescript-lua/blob/fa20fdcd5d18a31edbe6b35418eba6bf0fcf8a41/lib/Language/PureScript/Backend/Lua/Name.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/128/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-36551b89cf4e35cef0712511083e4ca2708655bbe44cd645a0cc9ade01750c4c
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-36551b89cf4e35cef0712511083e4ca2708655bbe44cd645a0cc9ade01750c4c
lib/Language/PureScript/Backend/Lua/Printer.hshttps://github.com/purescript-lua/purescript-lua/pull/128/files#diff-0580dfe88b5864d2ae5b7e66cf74cc15b3b4421fee8e2f6c210f750f127709e6
View file https://github.com/purescript-lua/purescript-lua/blob/fa20fdcd5d18a31edbe6b35418eba6bf0fcf8a41/lib/Language/PureScript/Backend/Lua/Printer.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/128/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-0580dfe88b5864d2ae5b7e66cf74cc15b3b4421fee8e2f6c210f750f127709e6
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-0580dfe88b5864d2ae5b7e66cf74cc15b3b4421fee8e2f6c210f750f127709e6
lib/Language/PureScript/Backend/Lua/Types.hshttps://github.com/purescript-lua/purescript-lua/pull/128/files#diff-543c96230f496ee72da8dabd99ae4efface1a758409d701c83d7b2ba21434db0
View file https://github.com/purescript-lua/purescript-lua/blob/fa20fdcd5d18a31edbe6b35418eba6bf0fcf8a41/lib/Language/PureScript/Backend/Lua/Types.hs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/purescript-lua/purescript-lua/pull/128/{{ revealButtonHref }}
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-543c96230f496ee72da8dabd99ae4efface1a758409d701c83d7b2ba21434db0
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-543c96230f496ee72da8dabd99ae4efface1a758409d701c83d7b2ba21434db0
https://github.com/purescript-lua/purescript-lua/pull/128/files#diff-543c96230f496ee72da8dabd99ae4efface1a758409d701c83d7b2ba21434db0
Please reload this pagehttps://github.com/purescript-lua/purescript-lua/pull/128/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.