Ok, I don’t know how to express this problem. But I have some (micro-)lenses created with template haskell. Depending on the position of the makeLens
function call, the code compiles or not. The weird thing is that failure happens because a type synonym is out of scope, but if I move further the makeLens
call, then It is in scope again.
I just recorded a gif because is too rare to explain.
I would understand that if suffixLenses
create from sort of type and you depend on that type well… something could be wrong with respect code order… but St
does not depend on suffixLenses