| 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:50d8367d-d2b4-876d-2d8e-623fd3355cb9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A574:19E4BB:735254:950F15:6B00E47D |
| html-safe-nonce | 3cfb56dff88dce596754cfb1be542b15694fc2a2eebdb52429f44e2a291532db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTc0OjE5RTRCQjo3MzUyNTQ6OTUwRjE1OjZCMDBFNDdEIiwidmlzaXRvcl9pZCI6IjMwNDU4MzIyMDc4NjEwODEyMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3208e9f3706d0e3c4923552ba9f69433efdb4182f99a48f87d0b21ef2f743141 |
| hovercard-subject-tag | pull_request:3855273977 |
| 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/45/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 | Closes #32. Supersedes #33 by including its test module, extended with a main so the generated code is actually executed.
What was wrong
eq x y = genericEq x y on a recursive data type overflowed t... |
| 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/45/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%2F45%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%2F45%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/45/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/45/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/45/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-32/fix-recursive-instance-stack-overflow | https://github.com/purescript-lua/purescript-lua/tree/issue-32/fix-recursive-instance-stack-overflow |
|
Conversation
0
| https://github.com/purescript-lua/purescript-lua/pull/45 |
|
Commits
2
| https://github.com/purescript-lua/purescript-lua/pull/45/commits |
|
Checks
1
| https://github.com/purescript-lua/purescript-lua/pull/45/checks |
|
Files changed
| https://github.com/purescript-lua/purescript-lua/pull/45/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/45/files |
|
Remove unsound eta reduction to fix the stack overflow in generic instances
| https://github.com/purescript-lua/purescript-lua/pull/45/files#top |
|
Show all changes
2 commits
| https://github.com/purescript-lua/purescript-lua/pull/45/files |
|
e7a6769
test: add runtime eval repros for issue #32
Unisay Jun 12, 2026
| https://github.com/purescript-lua/purescript-lua/pull/45/commits/e7a6769df0b96d176acc9408067385840d86958a |
|
718cef8
fix: remove unsound eta reduction (closes #32)
Unisay Jun 12, 2026
| https://github.com/purescript-lua/purescript-lua/pull/45/commits/718cef8753ec91a0b6aaf1cb3f6582827527e7d6 |
|
Clear filters
| https://github.com/purescript-lua/purescript-lua/pull/45/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/45/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/45/files |
|
Optimizer.hs
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
Spec.hs
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
Test.purs
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-370d04772d39f4ea07f37b89560bf8faf564a3297ac0e3eab8406390540c880d |
|
Test.purs
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-59009a74372399082292512f30d30fc8169f60e96b3d3ebb9474344bb7c961bd |
|
Test.purs
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-a3630b3322565f2d2b8504058eb7ce8e3090f021bf83e2e2e399a19410837231 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-69a9ccb2bea2e47b079058b88387a58dda0b8ad3a23e3100948844c4bd22f8f2 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-d14061e081c835eadc7c359ed265bb765b321b458d478c3ba1cd2706ffc1b91f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-ba60d21d8749e120b9bd39c8b0129977ede6e5a94b9c922bd286c3ef44636815 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-23f06ced0c5899f836b0abe7e908b3c00adea2c52ba0fb78995a2db079bfd2a0 |
|
corefn.json
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-181efa3422398b20b0554df438231e7b1a5708e80d755d9ad94401b392424595 |
|
.gitignore
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-891b192509d6854470f992fcf3adb3b4981a18eb4126c5e5311ebbfae7901c9d |
|
golden.txt
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-b7527e956a9534742604dc478bb4b1ef9ca64ced8b4278c3e9fba46f6684da84 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-8529207f5726b1c4ce856b7d81dadbbbdc4b244d37e96f40d897c3acc69290b8 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-0c90c2d7623d39f887ed98803e0198ce7532cb955c04690d5c518a02bb16d0e1 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-52c9df555f809823119e4c0b6bbc0e9cd1218582e4ff18d9e90a7f74f2c3cc15 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-4a04b196f88c94dbe3fd6bf1792295beb28ce0f8242747d682299ef3dbdcd074 |
|
corefn.json
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-1f39dbacb2447e072fa0160dc7748988d925c0bb23ea9446caa70954308d2a25 |
|
.gitignore
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-63daab4358c66884fc5bc95b6d67e71196d4aaaf39f6a9da1ef01a1bfdc14d8b |
|
golden.txt
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-6fcceec1860a9a381b1879b12fb9266a59823549c809496e5eccdaa72ef78b8f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-f681ba814c3f5a9d02a0f986890219bb41cd2f8fb10633efcc78b3ef649ad60f |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-9e3f316b6cc931f334b87e8edcd3d4b82e1342549d712184ba6514363e081a25 |
|
corefn.json
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-5774b2a9cdc2c35900703a9476e599bca02e0bf61c3a3d186ac9d552b3b8489c |
|
.gitignore
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-a5c68004f3401da411644b70e7225271964fc81293df671a2878045dd1f04d59 |
|
golden.txt
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-1fd3dbe6d373f8e1cd4c9925bfdce5415a766c01f38d46887ea612602e8b322b |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-d3c70e506ea822ff99389c6a4e383878df25de8723c47a01e91e7dc5792501dc |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-596c7cb04898e2e110885627fbe42de08e09aa38b253a73bf3a99c9cedfa6bec |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-ee34ce279b69a53dc3603d1e78e20b3ddb145d92df2da83384086cafeae6df49 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-7e3eb285281b4a8730b2ba43114ca5f003956f7918c1682d953b4873f397045f |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-214ade9cc7aa9bbbaeb07927c013dfa7eeb9f9e2f12ed14f5d31fc98a446bd13 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-67e4dcf4711ce34fdb0ed8a2c23c4b638cf54c282818689a85be15ec720ace60 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-6a7185e44d7e2b364f41a95d2c0c0e640052894a63bc9b0272a2d4214787b699 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-60652c72e4257633c420fd3a98b044d0dca7f285f634abc3fd0d5ac30e7f6136 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-8d033027fc53cb99d91b379e4ee2de7b079e1d3343fe598fba51211692d8cebf |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-1b0c45cacd09fb2b63dc94b7c30abbd79d0e933acd8f6c16b66594440df4f9a6 |
| lib/Language/PureScript/Backend/IR/Optimizer.hs | https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/718cef8753ec91a0b6aaf1cb3f6582827527e7d6/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/45/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
| test/Language/PureScript/Backend/IR/Optimizer/Spec.hs | https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/718cef8753ec91a0b6aaf1cb3f6582827527e7d6/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/45/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
| https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
| test/ps/golden/Golden/BugListGenericEq/Test.purs | https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-370d04772d39f4ea07f37b89560bf8faf564a3297ac0e3eab8406390540c880d |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/718cef8753ec91a0b6aaf1cb3f6582827527e7d6/test/ps/golden/Golden/BugListGenericEq/Test.purs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/45/{{ revealButtonHref }} |
| test/ps/golden/Golden/DerivedFunctor/Test.purs | https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-59009a74372399082292512f30d30fc8169f60e96b3d3ebb9474344bb7c961bd |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/718cef8753ec91a0b6aaf1cb3f6582827527e7d6/test/ps/golden/Golden/DerivedFunctor/Test.purs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/45/{{ revealButtonHref }} |
| test/ps/golden/Golden/GenericEqTwoTypes/Test.purs | https://github.com/purescript-lua/purescript-lua/pull/45/files#diff-a3630b3322565f2d2b8504058eb7ce8e3090f021bf83e2e2e399a19410837231 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/718cef8753ec91a0b6aaf1cb3f6582827527e7d6/test/ps/golden/Golden/GenericEqTwoTypes/Test.purs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/45/{{ revealButtonHref }} |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/45/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/45/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 |