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

Add an Eq instance on GHC 8.6+ #47

Closed
int-index opened this issue Aug 2, 2018 · 2 comments
Closed

Add an Eq instance on GHC 8.6+ #47

int-index opened this issue Aug 2, 2018 · 2 comments
Assignees

Comments

@int-index
Copy link
Collaborator

GHC 8.6 offers quantified constraints, meaning we can try to do something like this:

instance (forall a. Typeable a => Eq (f a)) => Eq (TypeRepMap f)
@chshersh
Copy link
Contributor

chshersh commented Aug 3, 2018

@int-index Could you recommend good tutorial on QuantifiedConstraints?

@int-index
Copy link
Collaborator Author

https://ryanglscott.github.io/2018/06/22/quantifiedconstraints-and-the-trouble-with-traversable/

Here's a three-part blog post series on QuantifiedConstraints from Ryan Scott.

@chshersh chshersh self-assigned this Aug 20, 2018
@vrom911 vrom911 added this to To do in #2: Hacktoberfest (October, 2018) via automation Sep 30, 2018
@vrom911 vrom911 added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Sep 30, 2018
@chshersh chshersh removed the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Nov 7, 2018
@chshersh chshersh self-assigned this Mar 27, 2019
vrom911 pushed a commit that referenced this issue Mar 27, 2019
* [#47] Add Eq instance to TypeRepMap using QuantifiedConstraints

Resolves #47

* Fix tests on old GHCs
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