Skip to content

Commit

Permalink
Turn EqOps into value class
Browse files Browse the repository at this point in the history
  • Loading branch information
indocomsoft committed Jun 26, 2024
1 parent dd89133 commit 2fe02d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/syntax/eq.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ trait EqSyntax {
new EqOps[A](a)
}

final class EqOps[A: Eq](lhs: A) {
final class EqOps[A: Eq](val lhs: A) extends AnyVal {
def ===(rhs: A): Boolean = Eq[A].eqv(lhs, rhs)
def =!=(rhs: A): Boolean = Eq[A].neqv(lhs, rhs)
def eqv(rhs: A): Boolean = Eq[A].eqv(lhs, rhs)
Expand Down

0 comments on commit 2fe02d8

Please sign in to comment.