| 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:4c4678fd-8159-a649-4f26-63b572bec26c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A2F4:19114D:CFAE9A:10BDE65:6B00EF81 |
| html-safe-nonce | 616f7699893fd0fd46d364dc0fde92d517a5ecbc11d6d2ffc426f512baa2843e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkY0OjE5MTE0RDpDRkFFOUE6MTBCREU2NTo2QjAwRUY4MSIsInZpc2l0b3JfaWQiOiIzMDg2MTMxMjUwMzQ0MjkyMjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 280d7834da6c3c0f26b85a4b3af3612004872ecaa93c44688dd56e6ce59fb5ac |
| hovercard-subject-tag | pull_request:3999392300 |
| 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/191/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 #167.
Problem
betaReduce rewrote App (Abs (ParamNamed x) body) r by substituting r into every occurrence of x, without looking at the shape of r or the number of occurrences. In a strict lang... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/purescript-lua/purescript-lua/pull/191/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%2F191%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%2F191%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/191/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/191/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/191/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-167/beta-reduce-let-nontrivial-args | https://github.com/purescript-lua/purescript-lua/tree/issue-167/beta-reduce-let-nontrivial-args |
|
Conversation
1
| https://github.com/purescript-lua/purescript-lua/pull/191 |
|
Commits
1
| https://github.com/purescript-lua/purescript-lua/pull/191/commits |
|
Checks
2
| https://github.com/purescript-lua/purescript-lua/pull/191/checks |
|
Files changed
| https://github.com/purescript-lua/purescript-lua/pull/191/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/191/files |
|
fix: beta reduction no longer duplicates a non-trivial argument (#167)
| https://github.com/purescript-lua/purescript-lua/pull/191/files#top |
|
Show all changes
1 commit
| https://github.com/purescript-lua/purescript-lua/pull/191/files |
|
b75f69f
fix: beta reduction let-binds a non-trivial argument (#167)
Unisay Jul 6, 2026
| https://github.com/purescript-lua/purescript-lua/pull/191/commits/b75f69fd731b7c9631cd7e3080e284135f36c6d6 |
|
Clear filters
| https://github.com/purescript-lua/purescript-lua/pull/191/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/191/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/191/files |
|
Optimizer.hs
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
Spec.hs
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-21493da3e318da3ee2825028a32ebf86f78211a729dc038186f32a8583cbe547 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-0414ba320cb9d07203f9967e37ea81fc1c7c6e7681a63d3e10b511c8056fb6e3 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-d14061e081c835eadc7c359ed265bb765b321b458d478c3ba1cd2706ffc1b91f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-d3c70e506ea822ff99389c6a4e383878df25de8723c47a01e91e7dc5792501dc |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-596c7cb04898e2e110885627fbe42de08e09aa38b253a73bf3a99c9cedfa6bec |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-214ade9cc7aa9bbbaeb07927c013dfa7eeb9f9e2f12ed14f5d31fc98a446bd13 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-67e4dcf4711ce34fdb0ed8a2c23c4b638cf54c282818689a85be15ec720ace60 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-6dd832f0599e4565be9fba3ebf138337f62b76ef432e4de9943388ca4b187b04 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-3058caa776257034fc5c6caf6cdcd1823934a0ed43d330ebdb6e26da662cf83e |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-eba9620c8d2b8c56b9251abc58b7505831f8499b1f53fad731c19446d5d29c2e |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-ed682b7874cb77c82d884b944cd048645092642e7fbac65460891338ad694785 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-1b5535623f46b914653ed9e5442fae77720527fa9c50e231324df3ede64caf63 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-fca93d3cfc4a9e907e10d93afc283a6d0c09351dbb80b3273e71fef56851d43c |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-cbb1b972839736658601bbee6059e002ea2a36bbeed1f407d41f597f6e2e453e |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-f943719d3e54c980d05ce8d70c52e063d34f21edfe9181c6eb2163757d0c686a |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-b3d35ac4539244a4144b23d703c439de0dc3c45b642f70979c085d8988537395 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-de9cc01bca01b7d30657c206f503b086d5a34c7c214e6db6ea028b7f2c5c9136 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-d9019e1da7a5c2165e5a9d317eac11e22dfd56594b9eb9df93979f3211b81a89 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-7ff55b295e0250a51d186e57a6acc631a2e9c62ff2018301c9fed9f233c7dddc |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-060f38f5ecfff2ae036e099dad5d27c21eb38958b6f4b12ae9588a19765090e5 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-6c83dcd06227adf985a117c26f276373f15f72bb8d3a61a5673aba8e54d83e58 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-8be75600b729c24bd7e6da1875279fbeaf3c2cd9940eda1c1882b1f58b8269ad |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-eb900aa47a3a6fb8d5a7e6e38095800ee1d6e13997f9b8b2354bdcdebed12e65 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-91f0a71097f8703b938fa1dd66046d0029ac520fb925dda1a2f4b3da5ef6ccb4 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-7cb40758f0c4fe0117dcb551a917aaa5a04ec2c37fa895f3a24434fbda6f5d17 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-3006141b034eb94f2e88b5db2e09fd3a0fb2c4565719131fe516243bc24b92e8 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-8e7867f5f173ace42b15b122ecdf3ff80cec593e6931cb44edafb30838f1044a |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-df535e1f7273af0cc86db20df55495de4552000d7bf2f3abb21f421d07947914 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-8f846c962c84e2efb0046e7848c15b3bac3e044be37a2d2ee0620f823f2e9b0f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-943a6e999776e2a06a4d4209af7f89e9a8d977d6000c31c70ed84e781da2e2ff |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-56618fb442d7b6de74d0159576d795d225986345ac7840c4a3a8a3831cb98ad3 |
| lib/Language/PureScript/Backend/IR/Optimizer.hs | https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/b75f69fd731b7c9631cd7e3080e284135f36c6d6/lib/Language/PureScript/Backend/IR/Optimizer.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/191/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
| test/Language/PureScript/Backend/IR/Optimizer/Spec.hs | https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/b75f69fd731b7c9631cd7e3080e284135f36c6d6/test/Language/PureScript/Backend/IR/Optimizer/Spec.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/191/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
| test/ps/output/Golden.Annotations.M2/golden.ir | https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-21493da3e318da3ee2825028a32ebf86f78211a729dc038186f32a8583cbe547 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/b75f69fd731b7c9631cd7e3080e284135f36c6d6/test/ps/output/Golden.Annotations.M2/golden.ir |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/191/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-21493da3e318da3ee2825028a32ebf86f78211a729dc038186f32a8583cbe547 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-21493da3e318da3ee2825028a32ebf86f78211a729dc038186f32a8583cbe547 |
| test/ps/output/Golden.Annotations.M2/golden.lua | https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-0414ba320cb9d07203f9967e37ea81fc1c7c6e7681a63d3e10b511c8056fb6e3 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/b75f69fd731b7c9631cd7e3080e284135f36c6d6/test/ps/output/Golden.Annotations.M2/golden.lua |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/191/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-0414ba320cb9d07203f9967e37ea81fc1c7c6e7681a63d3e10b511c8056fb6e3 |
| test/ps/output/Golden.ArrayOfUnits.Test/golden.ir | https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/b75f69fd731b7c9631cd7e3080e284135f36c6d6/test/ps/output/Golden.ArrayOfUnits.Test/golden.ir |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/191/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
| https://github.com/purescript-lua/purescript-lua/pull/191/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/191/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/191/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 |