The following example shows a rough equivalent of how a derives Monoid clause is desugared: Similar to derives above, but instances are not derived recursively (except for enums and sealed traits).
The authors introduce notions of monoid, comonoid, bimonoid, and Lie monoid relative to a fixed hyperplane arrangement. They also construct universal bimonoids by using generalizations of the ...
Dehornoy, Patrick and Tesson, Emilie 2019. Garside combinatorics for Thompson’s monoid $F^+$ and a hybrid with the braid monoid $B_{\infty }^{+}$. Algebraic ...
This comes with a significantly reduced binary footprint in client code. Using shapeless 3 the derivation of a monoid for a Scala ADT is as simple as, ...