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 Cogen instances #90

Open
nigredo-tori opened this issue Feb 20, 2020 · 0 comments
Open

Add Cogen instances #90

nigredo-tori opened this issue Feb 20, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nigredo-tori
Copy link

nigredo-tori commented Feb 20, 2020

These shouldn't be hard to implement - all we need is a conversion to some concrete representation. For example, for LocalDate we can use Cogen[Long].contramap(_.toEpochDay).

As for the motivation, cats makes extensive use of Cogens in cats-laws.

@fedefernandez fedefernandez added help wanted Extra attention is needed enhancement New feature or request labels Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants