| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:12893cd2-4840-0562-5dc8-edf73ddbea97 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B82E:34CAB:6F26EB:8F138A:6B00E4A3 |
| html-safe-nonce | 87baa1ac5f0236a28d4bafde54520af9015b1ffdd65bf8703cd529976d5126f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODJFOjM0Q0FCOjZGMjZFQjo4RjEzOEE6NkIwMEU0QTMiLCJ2aXNpdG9yX2lkIjoiNTUzNjg1MTcyNzAxOTQ2NzkzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4ed965c6c504f2c59d8a4d9b8c9db2b04ea3c2effdd5f485f04229252e8a2fc0 |
| hovercard-subject-tag | pull_request:3874880300 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/purescript-lua/purescript-lua/pull/105/files |
| twitter:image | https://avatars.githubusercontent.com/u/1009751?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1009751?s=400&v=4 |
| og:image:alt | Fixes #46.
Problem
A long straight-line do block desugars to a chain of bind/discard whose continuations nest lexically. Past ~200 levels Lua's parser rejects the chunk with chunk has too many ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/purescript-lua/purescript-lua/pull/105/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F105%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F105%2Ffiles |
| Sign up | https://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 |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/105/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/105/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/105/files |
| purescript-lua | https://github.com/purescript-lua |
| purescript-lua | https://github.com/purescript-lua/purescript-lua |
| Code | https://github.com/purescript-lua/purescript-lua |
| Issues48 (48) | https://github.com/purescript-lua/purescript-lua/issues |
| Pull requests | https://github.com/purescript-lua/purescript-lua/pulls |
| Discussions | https://github.com/purescript-lua/purescript-lua/discussions |
| Actions | https://github.com/purescript-lua/purescript-lua/actions |
| Projects | https://github.com/purescript-lua/purescript-lua/projects |
| Security and quality | https://github.com/purescript-lua/purescript-lua/security |
| Insights | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpurescript-lua%2Fpurescript-lua%2Fissues%2Fnew%2Fchoose |
| Unisay | https://github.com/Unisay |
| main | https://github.com/purescript-lua/purescript-lua/tree/main |
| issue-46/magic-do-effect-st | https://github.com/purescript-lua/purescript-lua/tree/issue-46/magic-do-effect-st |
|
Conversation
1
| https://github.com/purescript-lua/purescript-lua/pull/105 |
|
Commits
4
| https://github.com/purescript-lua/purescript-lua/pull/105/commits |
|
Checks
2
| https://github.com/purescript-lua/purescript-lua/pull/105/checks |
|
Files changed
| https://github.com/purescript-lua/purescript-lua/pull/105/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/105/files |
|
fix: flatten Effect/ST do blocks (magic-do) to avoid Lua's nesting limit (#46)
| https://github.com/purescript-lua/purescript-lua/pull/105/files#top |
|
Show all changes
4 commits
| https://github.com/purescript-lua/purescript-lua/pull/105/files |
|
132bc0b
fix: flatten Effect/ST do blocks (magic-do) to avoid Lua's nesting li…
Unisay Jun 16, 2026
| https://github.com/purescript-lua/purescript-lua/pull/105/commits/132bc0bc0da5ad2bda3ad1985113b75fc9ea2e51 |
|
4579422
docs: add user-facing Lua-target quirks & gotchas guide
Unisay Jun 16, 2026
| https://github.com/purescript-lua/purescript-lua/pull/105/commits/4579422208629d46dd98f048c1ccc29d1a913de0 |
|
b69930b
docs: note Lua's per-function locals/upvalues caps in QUIRKS
Unisay Jun 21, 2026
| https://github.com/purescript-lua/purescript-lua/pull/105/commits/b69930be8a7cb4912ac76fa777c25b96058e99f9 |
|
52deb38
refactor: use LambdaCase for CoreFn.Expr annotation helpers
Unisay Jun 21, 2026
| https://github.com/purescript-lua/purescript-lua/pull/105/commits/52deb381d1a6527872fce7b7a2d714dbd836b3dc |
|
Clear filters
| https://github.com/purescript-lua/purescript-lua/pull/105/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/105/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/105/files |
|
CLAUDE.md
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
QUIRKS.md
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-e829c580d06215599e6ce7868033ec1082f0c45c0e4d8aca64dc1c3a3da0d6c3 |
|
MagicDo.hs
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-328cbd548cb26793eb748fd65aeac8ad258513e2b55db04b4d1aefc7477ea06f |
|
Optimizer.hs
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
Expr.hs
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-d3e384e8f34f93ffe2ad7543d1e604b58dffd8774ce1868da8e4b5be70e46911 |
|
pslua.cabal
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-cf0302393cf6443df4429c19c0fc326753a83405d0366075a98ac2753e5e1ab2 |
|
Test.purs
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-9222118c16db4639a193b0c09bef6c74619d25224eefc36e63786deecaaf8d6d |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-d14061e081c835eadc7c359ed265bb765b321b458d478c3ba1cd2706ffc1b91f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-a50730a65be2dd43fb54fcc7256daba19c0f0d185fa91ae70fd74eb6dc88babb |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-f09de2d9591e7ed04c015cf5105c29cef2be557187d5d7b8ca203b70d4f11bfc |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-8529207f5726b1c4ce856b7d81dadbbbdc4b244d37e96f40d897c3acc69290b8 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-0c90c2d7623d39f887ed98803e0198ce7532cb955c04690d5c518a02bb16d0e1 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-51768e0a180e8ba17b000ead8fa35bcd5743917951b324a2b821a2ffbfd4ee35 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-33101f4068d284cd068f09a25c752d3e6d8287f96ae0b55f30ffa86fa165fa8e |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-f681ba814c3f5a9d02a0f986890219bb41cd2f8fb10633efcc78b3ef649ad60f |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-9e3f316b6cc931f334b87e8edcd3d4b82e1342549d712184ba6514363e081a25 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-d3c70e506ea822ff99389c6a4e383878df25de8723c47a01e91e7dc5792501dc |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-596c7cb04898e2e110885627fbe42de08e09aa38b253a73bf3a99c9cedfa6bec |
|
corefn.json
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-5087cd546014121bd11d871d08228597755b395fd3a0b971139d998dd2a83b4e |
|
.gitignore
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-4b6b1b6530749f40a096f64e00ec0c8e6dbcf860b32d8fa0130deef80ce62a23 |
|
golden.txt
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-5303c8b8c0efe954370524e3d6a1c341f9a092a6aaecd19229845e13dfbd2738 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-8bb650ea21e73b8a93416c7bbefd047d58486d7ee1b19b713199ef7f6f00c2c1 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-1080c4da770e84d415bca9035ba0450a5984530aeea1c4a005f363a151df5e11 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-3006141b034eb94f2e88b5db2e09fd3a0fb2c4565719131fe516243bc24b92e8 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-8e7867f5f173ace42b15b122ecdf3ff80cec593e6931cb44edafb30838f1044a |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-ea89ea708c8e25a05b63283fb8d74820b2ce2219bd5484a5f8b7b9b4c3d2a659 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-4f0755e4e4caea3e293c097cbe735d371c163fa463fffab6dcb32535099b9029 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-df535e1f7273af0cc86db20df55495de4552000d7bf2f3abb21f421d07947914 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-8f846c962c84e2efb0046e7848c15b3bac3e044be37a2d2ee0620f823f2e9b0f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-943a6e999776e2a06a4d4209af7f89e9a8d977d6000c31c70ed84e781da2e2ff |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-56618fb442d7b6de74d0159576d795d225986345ac7840c4a3a8a3831cb98ad3 |
| CLAUDE.md | https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/52deb381d1a6527872fce7b7a2d714dbd836b3dc/CLAUDE.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/105/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
| https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
| docs/QUIRKS.md | https://github.com/purescript-lua/purescript-lua/pull/105/files#diff-e829c580d06215599e6ce7868033ec1082f0c45c0e4d8aca64dc1c3a3da0d6c3 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/52deb381d1a6527872fce7b7a2d714dbd836b3dc/docs/QUIRKS.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/105/{{ revealButtonHref }} |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/105/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/105/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |