Skip to content

Use fresh, unshadowed names for the field patterns#1494

Closed
merijn wants to merge 1 commit intoyesodweb:masterfrom
merijn:th-fix
Closed

Use fresh, unshadowed names for the field patterns#1494
merijn wants to merge 1 commit intoyesodweb:masterfrom
merijn:th-fix

Conversation

@merijn
Copy link
Contributor

@merijn merijn commented May 12, 2023

Change the generation code for keyFromRecordM to generate fresh, uncaptured variable names for the patterns it generates. Fixes #1493.

Change the generation code for keyFromRecordM to generate fresh,
uncaptured variable names for the patterns it generates. Fixes yesodweb#1493.
hw202207 added a commit to hw202207/persistent that referenced this pull request Jun 1, 2023
parsonsmatt pushed a commit that referenced this pull request Jun 27, 2023
* Fixes name shadowing error at keyFromRecordM for Primary keys

* Address comments - use newName instead of mkName to create variable

- got the idea from #1494

* Update changelog

* Fixes the link in the change log
@parsonsmatt
Copy link
Collaborator

Closed in favor of #1496 - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Name shadowing warning in generated code

2 participants