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

Can uninferred types of interpolated args be repaired? #19

Open
kenbot opened this issue Jan 26, 2017 · 0 comments
Open

Can uninferred types of interpolated args be repaired? #19

kenbot opened this issue Jan 26, 2017 · 0 comments

Comments

@kenbot
Copy link
Owner

kenbot commented Jan 26, 2017

Within the macro, type information flows from left to right throughout, allowing type inference to finish the job in the generated code.

However, interpolated values are typechecked before the macro runs. Some interpolated optics that have type parameters (ie monocle.function.At.at) crap out with [Nothing,Nothing], because they don't have the information. Is it possible within the macro to redact the type parameters, inserting the information that we already know?

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

No branches or pull requests

1 participant