Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lenses reserved word fix #539

Merged
merged 4 commits into from Oct 16, 2020
Merged

Conversation

deenar
Copy link
Contributor

@deenar deenar commented Oct 16, 2020

Fixed the lenses generation code to check for reserved words. The lenses generation code lowercased the Class names to generate function parameters and this wasn't being checked for reserved words.

  def Id: monocle.Lens[Case, String] = monocle.Lens[Case, String](_.Id)((_Id: String) => (`case`: Case) => `case`.copy(Id = _Id))

@deenar deenar closed this Oct 16, 2020
@deenar deenar reopened this Oct 16, 2020
Copy link
Owner

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eed3si9n eed3si9n merged commit a1c99e8 into eed3si9n:master Oct 16, 2020
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.

None yet

2 participants