René's URL Explorer Experiment


Title: runEffectFn10 drops its tenth argument (j) · Issue #1 · purescript-lua/purescript-lua-effect · GitHub

Open Graph Title: runEffectFn10 drops its tenth argument (j) · Issue #1 · purescript-lua/purescript-lua-effect

X Title: runEffectFn10 drops its tenth argument (j) · Issue #1 · purescript-lua/purescript-lua-effect

Description: PureScript Lua: The Effect monad, for handling native side effects - runEffectFn10 drops its tenth argument (j) · Issue #1 · purescript-lua/purescript-lua-effect

Open Graph Description: PureScript Lua: The Effect monad, for handling native side effects - runEffectFn10 drops its tenth argument (j) · Issue #1 · purescript-lua/purescript-lua-effect

X Description: PureScript Lua: The Effect monad, for handling native side effects - runEffectFn10 drops its tenth argument (j) · Issue #1 · purescript-lua/purescript-lua-effect

Opengraph URL: https://github.com/purescript-lua/purescript-lua-effect

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"runEffectFn10 drops its tenth argument (j)","articleBody":"## Summary\n\n`runEffectFn10` in `src/Effect/Uncurried.lua` drops its tenth argument: it binds ten curried parameters `a` through `j` but only forwards nine of them to the underlying uncurried function, calling `fn(a, b, c, d, e, f, g, h, i)` instead of `fn(a, b, c, d, e, f, g, h, i, j)`.\n\n## Offending code\n\n```lua\nrunEffectFn10 = (function(fn)\n  return function(a)\n    return function(b)\n      ...\n        return function(j)\n          return function()\n            return fn(a, b, c, d, e, f, g, h, i)   -- j is silently dropped\n          end\n        end\n      ...\n```\n\n## Root cause\n\nA copy/paste arity error when the curried-application body was written. Every other member of the family is correct: `runEffectFn1` through `runEffectFn9` each forward exactly their N arguments, and all of `mkEffectFn1` through `mkEffectFn10` forward the full curried chain. Only `runEffectFn10`'s final call is short by one argument.\n\n## Impact\n\nAny PureScript code that imports a foreign function via `EffectFn10` and invokes it through `runEffectFn10` will execute the underlying function with its tenth argument bound to `nil`. The call still type-checks on the PureScript side and produces no runtime error, so the failure is silent: the tenth parameter is simply lost. In Lua this is especially easy to miss because a missing trailing argument is not an error, it just becomes `nil`.\n\n## How it was found\n\nRunning `luacheck --quiet --std min src/` flags the dropped binding as a dead parameter:\n\n```\nsrc/Effect/Uncurried.lua:197:39: unused argument j\n```\n\nThe `j` parameter is declared but never read precisely because the call site omits it.\n\n## Audit of the rest of the family\n\nI audited the whole `mkEffectFnN` / `runEffectFnN` family in this file. `runEffectFn10` is the only offender. There are no `Data.Function.Uncurried`-style helpers (`mkFnN` / `runFnN`) in this repository.\n\n## Fix\n\nForward `j` in the final call:\n\n```lua\nreturn fn(a, b, c, d, e, f, g, h, i, j)\n```\n\nThis is a one-token change confined to `src/`. After it, `luacheck` no longer reports the unused-argument warning for `src/Effect/Uncurried.lua`.\n","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-06-14T08:32:23Z","url":"https://github.com/purescript-lua/purescript-lua-effect/issues/1"}

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/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:ccf99666-d30c-66d0-5e60-b01993e83bd6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9678:76F02:81758C:A8DB01:6B00DB73
html-safe-nonce4b5b50767572c9a111ca130d410bd8b1edf3984dbd925e0d7faa2f3f76be35a5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Njc4Ojc2RjAyOjgxNzU4QzpBOERCMDE6NkIwMERCNzMiLCJ2aXNpdG9yX2lkIjoiNjk0MDA5MTcyOTU5Mjc2OTM5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc4701ed1cebbd10a5459531df2e7e8fd2935ea34cb52e3aa70106d5dfc5f9b7d
hovercard-subject-tagrepository:620968041
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/purescript-lua/purescript-lua-effect/issues/1
twitter:imagehttps://opengraph.githubassets.com/c629f89fff866ce5f8b122d9dde88ff309ed41a8043258b7ffd45da4108a7d1c/purescript-lua/purescript-lua-effect
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c629f89fff866ce5f8b122d9dde88ff309ed41a8043258b7ffd45da4108a7d1c/purescript-lua/purescript-lua-effect
og:image:altPureScript Lua: The Effect monad, for handling native side effects - runEffectFn10 drops its tenth argument (j) · Issue #1 · purescript-lua/purescript-lua-effect
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
turbo-cache-controlno-cache
go-importgithub.com/purescript-lua/purescript-lua-effect git https://github.com/purescript-lua/purescript-lua-effect.git
octolytics-dimension-user_id131581790
octolytics-dimension-user_loginpurescript-lua
octolytics-dimension-repository_id620968041
octolytics-dimension-repository_nwopurescript-lua/purescript-lua-effect
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id119270415
octolytics-dimension-repository_parent_nwopurescript/purescript-effect
octolytics-dimension-repository_network_root_id119270415
octolytics-dimension-repository_network_root_nwopurescript/purescript-effect
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/purescript-lua/purescript-lua-effect/issues/1#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua-effect%2Fissues%2F1
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-effect%2Fissues%2F1
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=purescript-lua%2Fpurescript-lua-effect
Reloadhttps://github.com/purescript-lua/purescript-lua-effect/issues/1
Reloadhttps://github.com/purescript-lua/purescript-lua-effect/issues/1
Reloadhttps://github.com/purescript-lua/purescript-lua-effect/issues/1
https://github.com/purescript-lua/purescript-lua-effect
New issuehttps://github.com/login?return_to=https://github.com/purescript-lua/purescript-lua-effect/issues/1
New issuehttps://github.com/login?return_to=https://github.com/purescript-lua/purescript-lua-effect/issues/1
#2https://github.com/purescript-lua/purescript-lua-effect/pull/2
runEffectFn10 drops its tenth argument (j)https://github.com/purescript-lua/purescript-lua-effect/issues/1#top
#2https://github.com/purescript-lua/purescript-lua-effect/pull/2
https://github.com/Unisay
Unisayhttps://github.com/Unisay
on Jun 14, 2026https://github.com/purescript-lua/purescript-lua-effect/issues/1#issue-4658451064
Unisayhttps://github.com/Unisay
completedhttps://github.com/purescript-lua/purescript-lua-effect/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2https://github.com/purescript-lua/purescript-lua-effect/pull/2
on Jun 14, 2026https://github.com/purescript-lua/purescript-lua-effect/issues/1#event-26724480774
Sign up for freehttps://github.com/signup?return_to=https://github.com/purescript-lua/purescript-lua-effect/issues/1
Sign in to commenthttps://github.com/login?return_to=https://github.com/purescript-lua/purescript-lua-effect/issues/1
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.