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 K21 test example with BifunctorK type class #224

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

joroKr21
Copy link
Member

Followup to #221

@joroKr21
Copy link
Member Author

@milessabin I'm not sure if we would actually want to add this to the library or just close it as an experiment

@milessabin
Copy link
Member

If you have an actual use for it, then I don't see any objection to adding it, other than footprint.

This is all basically boilerplate ... could code gen be used? Then split an arbitrary number of kinds out into separate modules?

@joroKr21
Copy link
Member Author

If you have an actual use for it, then I don't see any objection to adding it, other than footprint.

The only use-case I can think of is in cats-tagless for typelevel/cats-tagless#261 + typelevel/cats-tagless#29

This is all basically boilerplate ... could code gen be used?

I think that would be the only option yeah. I don't think macros or macro annotations can work currently.

Then split an arbitrary number of kinds out into separate modules?

Do you mean like ship the boilerplate generator? As like an sbt plugin? That would be an interesting idea.

@milessabin
Copy link
Member

Do you mean like ship the boilerplate generator? As like an sbt plugin?

I didn't actually mean that, but it is an interesting idea!

@joroKr21 joroKr21 changed the title Add K21 with an example of BifunctorK type class Add K21 test example with BifunctorK type class Aug 21, 2024
@joroKr21 joroKr21 merged commit 9c39c49 into typelevel:main Aug 21, 2024
6 checks passed
@joroKr21 joroKr21 deleted the k21 branch August 21, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants