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

Weird behaviour of lenses in type definition #1313

Open
giltho opened this issue Jun 14, 2024 · 2 comments
Open

Weird behaviour of lenses in type definition #1313

giltho opened this issue Jun 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@giltho
Copy link
Collaborator

giltho commented Jun 14, 2024

Hello hello,

I have some code that triggers a weird behaviour with the lenses in 1.18.0~5.2preview

image

It might be be because of the unusual type t = ... = ..., I'm not quite sure.
It seems to have the same behaviour to all my other type definitions with the same pattern, as long as the variant has at least one argument

image

This is not preventing any work so I'd say this is fairly low priority

@voodoos
Copy link
Collaborator

voodoos commented Jun 17, 2024

Thanks for your report @giltho.

Does the weird behavior persists if you remove the deriver ?

@voodoos voodoos added the bug Something isn't working label Jun 17, 2024
@giltho
Copy link
Collaborator Author

giltho commented Jun 20, 2024

No, it looks like removing the deriver stops this behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants