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't get at implicit variable #2258

Open
treeowl opened this issue May 12, 2015 · 2 comments
Open

Can't get at implicit variable #2258

treeowl opened this issue May 12, 2015 · 2 comments

Comments

@treeowl
Copy link
Contributor

treeowl commented May 12, 2015

IsReflexive : Rel a -> Type
IsReflexive {a} r = {x : a} -> x `r` x

lteIsReflexive : IsReflexive LTE
lteIsReflexive = ?lteIsReflexive_rhs

If I hit :p lteIsReflexive_rhs, I can see and use the x, but if I write

lteIsReflexive {x} = ?lteIsReflexive_rhs

I get an error:

builtin:0:0:When elaborating left hand side of lteIsReflexive:
Can't unify
        LTE x x (Type of lteIsReflexive x)
with
        argTy ->
        retTy (Is lteIsReflexive x applied to too many arguments?)

Specifically:
        Can't unify
                LTE x
        with
                \uv => argTy -> uv

I wonder if this might be related to #2211 or #2186.

@ahmadsalim
Copy link

@edwinb Why is this tagged as expected behaviour? :)

@ahmadsalim
Copy link

@edwinb This does not seem to have been fixed after the new implicit fixes.

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

3 participants