-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use noExactTyVars when promoting functions with local variables
Whenever we promote a function that closes over one or more local variables, we now use `noExactTyVars` to ensure that none of the local variables reuse unique `Name`s. This isn't strictly necessary right now, but this will be required in a future patch that will panic (triggering https://gitlab.haskell.org/ghc/ghc/-/issues/11812) unless `noExactTyVars` is used. While I was in the neighborhood, I took the opportunity to write `Note [Pitfalls of NameU/NameL]` with more context about why `noExactTyVars` is necessary in the first place, and I added references to the Note in all the places where we use it.
- Loading branch information
1 parent
548f590
commit 7815a55
Showing
31 changed files
with
296 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.