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

cats.kernel.CommutativeGroup instances for the various numeric types? #740

Open
LukaJCB opened this issue Sep 20, 2018 · 0 comments
Open

Comments

@LukaJCB
Copy link
Member

LukaJCB commented Sep 20, 2018

This plays into typelevel/algebra#218. In the Cats ecosystem all numeric types (Int, Long, BigInt, BigDecimal, etc.) come with a default Group that does addition.
This is pretty useful as most of the time addition is what you want e.g. when using foldMap or combineAll and it's a bit of a shame we can't reuse existing code relying on these functions to "just work" with the spire numeric types.

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

No branches or pull requests

1 participant