Skip to content

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.

2 participants