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

[DRY] Refactor the various definitions of 'pointwise' equality on functions/Functions/pointwise Algebras #2434

Open
jamesmckinna opened this issue Jul 7, 2024 · 2 comments

Comments

@jamesmckinna
Copy link
Contributor

The upcoming v2.1 has (more or less) standardised on a definition of pointwise equality/relations on (simply-typed) functions as being given by explicit quantification on its domain argument #2400 #2429 (following on from #2240 #2381 #2382 etc.).

This issue is to consider a wholesale refactoring of these definitions (and any other related ones such as Function.Indexed.Relation.Binary.Equality) to introduce them as instances of a common case, namely the 'constant indexed family' version of Relation.Binary.Indexed.Homogeneous.Core.Lift

Follow-up from #2400

@MatthewDaggitt
Copy link
Contributor

I'd be happy to replace them where it's backwards compatible... The problem is that many of them are defined as records or datatypes right? Which as experience has shown have very different inference behaviour from the generic version you link to.

@jamesmckinna
Copy link
Contributor Author

I'd be happy to replace them where it's backwards compatible... The problem is that many of them are defined as records or datatypes right? Which as experience has shown have very different inference behaviour from the generic version you link to.

Sigh... I guess you're right. :sadface:

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

2 participants