Skip to content

Commit

Permalink
Add generated CommutativeMonoid to tuple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Jan 24, 2017
1 parent be176fa commit 3dcea9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/KernelBoiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ object KernelBoiler {
- def empty: ${`(A..N)`} = ${nullaryTuple("empty")}
- }
-
- implicit def catsKernelStdCommutativeMonoidForTuple${arity}[${`A..N`}](implicit ${constraints("CommutativeMonoid")}): CommutativeMonoid[${`(A..N)`}] =
- new CommutativeMonoid[${`(A..N)`}] {
- def combine(x: ${`(A..N)`}, y: ${`(A..N)`}): ${`(A..N)`} = ${binTuple("combine")}
- def empty: ${`(A..N)`} = ${nullaryTuple("empty")}
- }
-
- implicit def catsKernelStdOrderForTuple${arity}[${`A..N`}](implicit ${constraints("Order")}): Order[${`(A..N)`}] =
- new Order[${`(A..N)`}] {
- def compare(x: ${`(A..N)`}, y: ${`(A..N)`}): Int =
Expand Down

0 comments on commit 3dcea9a

Please sign in to comment.