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

Fix some incorrect dependencies in alga_derive #101

Merged
merged 1 commit into from
Nov 30, 2020
Merged

Fix some incorrect dependencies in alga_derive #101

merged 1 commit into from
Nov 30, 2020

Conversation

mark-schultz-wu
Copy link
Contributor

Three small changes. I was unable to get any of the tests in alga_derive_test to run (even before modifying things), but in my personal use case (implementing an integral domain, so in particular multiplication does not have two-sided inverses) I have expanded the macro #[alga_derive(RingCommutative(Additive, Multiplicative))] and it now behaves as expected.

The total changes are:

  1. Fix incorrect dependency of Monoid on Quasigroup and Loop on Semigroup
  2. Remove incorrect dependencies of Quasigroup/Loop on the second operation of CommutativeRing (which must only be a semigroup)
  3. Remove second instance of Ring on the second operation of CommutativeRing (it led to two AbstractRing definitions which were then conflicting).

…p. Remove incorrect dependencies of Quasigroup/Loop on the second operation of CommutativeRing (which must only be a semigroup). Remove second instance of Ring on the second operation of CommutativeRing (it led to two AbstractRing definitions which were then conflicting).
@sebcrozet
Copy link
Member

Thanks!

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