goggles icon indicating copy to clipboard operation
goggles copied to clipboard

Can uninferred types of interpolated args be repaired?

Open kenbot opened this issue 8 years ago • 0 comments

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?

kenbot avatar Jan 26 '17 07:01 kenbot