-
Notifications
You must be signed in to change notification settings - Fork 382
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
[ fix #3448 ] Fix %search
in constraint
#3451
Conversation
%search
in constraint
X : Type
data Y : X -> Type
failing "While processing constructor MkZ. Can't find an implementation for X"
interface Y %search => Z (y : Y x) where
constructor MkZ
interface Y x => Z (y : Y x) where
constructor MkZ
0 getX : Z y => X
getX = %search I expected that adding |
Ok, it's not a problem with interfaces X : Type
data Y : X -> Type
failing "While processing constructor MkZ. Can't find an implementation for X"
interface Y %search => Z (y : Y x) where
constructor MkZ
-- The interface is elaborated into such data
failing "While processing constructor MkZ. Can't find an implementation for X"
data Z : Y x -> Type where
MkZ : {y : Y x} -> Y %search => Z y I created issue #3452 for this |
This also fixes the issue that I was addressing in #3052, where this would not compile: %unbound_implicits off
interface Foo a where
interface Foo a => Bar (a : Type) where The issue there was that the constraints were relying on the unbound implicits mechanism to pick up the |
Description
Added parameters to constraint hints to fix #3448
Should this change go in the CHANGELOG?
implementation, I have updated
CHANGELOG_NEXT.md
(and potentially alsoCONTRIBUTORS.md
).