Skip to content

Commit

Permalink
Merge pull request #1170 from benhutchison/topic/comparisonsyntax
Browse files Browse the repository at this point in the history
comparison syntax to complete #1101
  • Loading branch information
ceedubs authored Jul 1, 2016
2 parents 6cfd029 + 53e3f45 commit 5981883
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 5981883

Please sign in to comment.