Skip to content

Commit

Permalink
comparison syntax to complete #1101
Browse files Browse the repository at this point in the history
  • Loading branch information
benhutchison committed Jun 30, 2016
1 parent ed21654 commit 53e3f45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/scala/cats/syntax/order.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cats
package syntax

import cats.macros.Ops
import cats.kernel.Comparison

trait OrderSyntax extends PartialOrderSyntax {
implicit def catsSyntaxOrder[A: Order](a: A): OrderOps[A] =
Expand All @@ -12,4 +13,5 @@ final class OrderOps[A: Order](lhs: A) {
def compare(rhs: A): Int = macro Ops.binop[A, Int]
def min(rhs: A): A = macro Ops.binop[A, A]
def max(rhs: A): A = macro Ops.binop[A, A]
def comparison(rhs: A): Comparison = macro Ops.binop[A, Comparison]
}

0 comments on commit 53e3f45

Please sign in to comment.