-
Notifications
You must be signed in to change notification settings - Fork 14
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
genericAdaptor does not infer #42
Comments
It looks like instead of |
Great, thanks! I would indeed prefer this to be less general. I really want it to only work with types that look like
Is there any hope of going the other way? |
Oh, it doesn't seem to work, actually.
|
It seems instances of
|
@hesselink I have hit a snag with
genericAdaptor
. It does not infer properly. For example, if I usep2
I get nice inference behaviourOn the other hand, using
genericAdaptor
for the same purpose gives the error shown at the bottom of this comment. I managed to add a functional dependency which ends up giving us essentiallya -> p
. I think what we need isa -> p b c, p b c -> a
. I can't see how to achieve this becauseRep
seems to get in the way.Do you have any ideas how to address this? @Lysxia, you may also have some clever idea. about this.
Thanks!
genericAdaptor
type error:The text was updated successfully, but these errors were encountered: