From 2fe02d87532035230a5c3f76453a0c6a10ccf99c Mon Sep 17 00:00:00 2001 From: Julius Putra Tanu Setiaji Date: Wed, 26 Jun 2024 23:13:57 +0800 Subject: [PATCH] Turn EqOps into value class --- core/src/main/scala/cats/syntax/eq.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/cats/syntax/eq.scala b/core/src/main/scala/cats/syntax/eq.scala index f6fa3fde5b..6526e12d92 100644 --- a/core/src/main/scala/cats/syntax/eq.scala +++ b/core/src/main/scala/cats/syntax/eq.scala @@ -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)