Closed nireno closed 3 years ago
I added a check in the past to prevent that in lenses-ppx
https://github.com/Astrocoders/lenses-ppx/blob/master/packages/ppx/src/LensesPpx.re#L20-L22
Which version of lenses-ppx are you using?
@fakenickels I was working off of the demo project in this repo which was on version 5. I created a pull request that updates the package.
Thank you.
That's fantastic, thank you @nireno
Is there any way to avoid the following warning when using the [%lenses ...] ppx when the state has only one field?
Sample code that generates the above error:
I've been adding a dummy field in there just to silence the warning.