| 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:00be0509-eb81-7f26-2200-73a1a672fa87 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 97F2:24FC21:C7E126:10287E4:6B00EF56 |
| html-safe-nonce | b06394fc46b4f473059e89746b07ee831acea7e129c8b8f731cfae26a328236a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0YyOjI0RkMyMTpDN0UxMjY6MTAyODdFNDo2QjAwRUY1NiIsInZpc2l0b3JfaWQiOiI2MTA3Mzg3ODM5ODU5NDkwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 43819a299463a2f084656f4776325a1d40c768f0d94876930cc2a6e378243d13 |
| hovercard-subject-tag | pull_request:4125888295 |
| 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/298/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 #297.
What was broken
A module that instantiates discard with two different Bind dictionaries — Effect or ST plus any second monad; the repro uses ST + Effect, and Effect + Maybe produces the... |
| 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/298/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%2F298%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%2F298%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/298/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/298/files |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/298/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-297/canonicalize-through-toplevel-aliases | https://github.com/purescript-lua/purescript-lua/tree/issue-297/canonicalize-through-toplevel-aliases |
|
Conversation
0
| https://github.com/purescript-lua/purescript-lua/pull/298 |
|
Commits
1
| https://github.com/purescript-lua/purescript-lua/pull/298/commits |
|
Checks
2
| https://github.com/purescript-lua/purescript-lua/pull/298/checks |
|
Files changed
| https://github.com/purescript-lua/purescript-lua/pull/298/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/298/files |
|
fix(optimizer): canonicalize Effect/ST heads through top-level aliases (#297)
| https://github.com/purescript-lua/purescript-lua/pull/298/files#top |
|
Show all changes
1 commit
| https://github.com/purescript-lua/purescript-lua/pull/298/files |
|
74c4fd6
fix(optimizer): canonicalize Effect/ST heads through top-level aliases
Unisay Jul 24, 2026
| https://github.com/purescript-lua/purescript-lua/pull/298/commits/74c4fd68b159a64290bc366fc9611f6738145bf3 |
|
Clear filters
| https://github.com/purescript-lua/purescript-lua/pull/298/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/298/files |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/298/files |
|
20260724_160000_unisay_canonicalize_through_toplevel_aliases.md
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-0e85abb3123aa08bc995e951a526c26d1881c784ea9b3c3fa71b65f22396ce66 |
|
Backend.hs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c7b61c0a5ec94432343188b6840d78294db6703c8ef65baf74d41ddd0ec5ba94 |
|
EffectNames.hs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c715d67319c08b5e99d2e9b82914f79241cdefc0b7e8c6db54d9463a401ebb1e |
|
Linter.hs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
|
Optimizer.hs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-487ead9d0ca9c3e6f68e23c604b0ae9070089e0dd0f7d214cdce5fbc878f3315 |
|
Pass.hs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-abae6efc48eb2a5c5262970ee389785ead06f276979fda85fee4d192b5540b32 |
|
Spec.hs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-08e99a545b6968e28ad847ee02dcca639e254768b40d4e04ba31de515a1e685b |
|
Spec.hs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-241ea2421c606c31b9414fb386f9f4d1beb60055ed792935b393101edfd7b949 |
|
Spec.hs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-e10bc6586bdc2afb3eed89cc8935f6ff0059d32a82668123ce53808a6046c019 |
|
corefn.json
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-9480f544632891120ae95b1b3bfa18e52e1b03dab526f43f60383c9ec79973dc |
|
.gitignore
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-d56161d0afd7a72a1ec4882aade7b1580fc75be2119c775002bba4fbaac8993d |
|
golden.txt
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-69be8a01df4252ff590faec15badc67f6f9d0fce34acb8b48aa4559627020e58 |
|
golden.ir
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-fc124bcef858c2f36260227792ebffc9c811d637da4bd5d17cb0091a370acf80 |
|
golden.lua
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-46c90be6e57e4b5074ff97cc3e991ae9c2810fba31ae2d018df9bd4aa9c915ec |
|
Test.purs
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-563d4a37a4a12851c5350e1f87bd4839ffa0135b9f0d36fd4772f45d82fea656 |
| changelog.d/20260724_160000_unisay_canonicalize_through_toplevel_aliases.md | https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-0e85abb3123aa08bc995e951a526c26d1881c784ea9b3c3fa71b65f22396ce66 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/74c4fd68b159a64290bc366fc9611f6738145bf3/changelog.d/20260724_160000_unisay_canonicalize_through_toplevel_aliases.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/298/{{ revealButtonHref }} |
| lib/Language/PureScript/Backend.hs | https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c7b61c0a5ec94432343188b6840d78294db6703c8ef65baf74d41ddd0ec5ba94 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/74c4fd68b159a64290bc366fc9611f6738145bf3/lib/Language/PureScript/Backend.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/298/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c7b61c0a5ec94432343188b6840d78294db6703c8ef65baf74d41ddd0ec5ba94 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c7b61c0a5ec94432343188b6840d78294db6703c8ef65baf74d41ddd0ec5ba94 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c7b61c0a5ec94432343188b6840d78294db6703c8ef65baf74d41ddd0ec5ba94 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c7b61c0a5ec94432343188b6840d78294db6703c8ef65baf74d41ddd0ec5ba94 |
| lib/Language/PureScript/Backend/IR/EffectNames.hs | https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c715d67319c08b5e99d2e9b82914f79241cdefc0b7e8c6db54d9463a401ebb1e |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/74c4fd68b159a64290bc366fc9611f6738145bf3/lib/Language/PureScript/Backend/IR/EffectNames.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/298/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c715d67319c08b5e99d2e9b82914f79241cdefc0b7e8c6db54d9463a401ebb1e |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c715d67319c08b5e99d2e9b82914f79241cdefc0b7e8c6db54d9463a401ebb1e |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c715d67319c08b5e99d2e9b82914f79241cdefc0b7e8c6db54d9463a401ebb1e |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c715d67319c08b5e99d2e9b82914f79241cdefc0b7e8c6db54d9463a401ebb1e |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-c715d67319c08b5e99d2e9b82914f79241cdefc0b7e8c6db54d9463a401ebb1e |
| lib/Language/PureScript/Backend/IR/Linter.hs | https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
|
View file
| https://github.com/purescript-lua/purescript-lua/blob/74c4fd68b159a64290bc366fc9611f6738145bf3/lib/Language/PureScript/Backend/IR/Linter.hs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/298/{{ revealButtonHref }} |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
|
| https://github.com/purescript-lua/purescript-lua/pull/298/files#diff-264d10c5a4ba000a7bb29051f94654ee58f4385168f828107ec14859df053b39 |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/298/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 |