We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The laws stuff appears to only contain SemigroupK stuff, but nothing for Semigroup (and also Monoid).
I can obviously write out the scalacheck by hand, but it would be nice if it integrated with the rest of the discipline-based stuff
The text was updated successfully, but these errors were encountered:
The laws for type classes in cats-kernel like Semigroup and Monoid can be found in cats-kernel-laws.
cats-kernel
Semigroup
Monoid
cats-kernel-laws
Eg
import cats.kernel.laws.GroupLaws checkAll("Int", GroupLaws[Int].semigroup) checkAll("Int", GroupLaws[Int].monoid)
Used for example to test Validated's Monoid and Semigroup instances here.
Validated
That is definitely something which should be mentioned in the documentation about the laws (#1585).
Sorry, something went wrong.
For anyone watching / future me, checkAll comes from the Discipline test mixin
checkAll
Discipline
No branches or pull requests
The laws stuff appears to only contain SemigroupK stuff, but nothing for Semigroup (and also Monoid).
I can obviously write out the scalacheck by hand, but it would be nice if it integrated with the rest of the discipline-based stuff
The text was updated successfully, but these errors were encountered: