Open andreykl opened 6 years ago
The syntax you need here is guardM f {a} {b} = \{j} => ...
aka implicit lambda arguments, but this is currently not supported and, from what I understand, is likely to not be added before Idris 2.
Thank you! I was confused with this a bit. Should I leave the issue as a feature request?
I faced a strange behavior when I was trying to get an implicit variable.
Steps to Reproduce
This is how the hole looks like
So, everything is just as it should be (as I see). Now, I try to access j:
And this is how the hole looks like now
So, it renamed
j
toj1
and I'm not able to get access to it. When I try to getj1
it answers thatj1
is not an implicit argument of ImplicitCatchImp.guardM. That is true...Expected Behavior
j
of typeNat
should be in scopeObserved Behavior
j
has typeType
and needed variable is ranamed toj1
There are many issues with implicit arguments but I think most close to this one are #2258 and #4206