Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hamnis committed Aug 19, 2024
1 parent 215e0ed commit e15812d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ trait CirceMunitSuite extends DisciplineSuite with ArbitraryInstances with EqIns
registered.foreach(t => munitTestsBuffer += t.withName(s"$name - ${t.name}"))
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import shapeless.ops.nat.ToInt
trait MissingInstances {
implicit lazy val eqThrowable: Eq[Throwable] = Eq.fromUniversalEquals
implicit lazy val eqBigDecimal: Eq[BigDecimal] = Eq.fromUniversalEquals

implicit def eqRefArray[A <: AnyRef: Eq]: Eq[Array[A]] =
Eq.by((value: Array[A]) => Predef.wrapRefArray(value).toVector)(
cats.kernel.instances.vector.catsKernelStdEqForVector[A]
Expand All @@ -62,8 +62,8 @@ trait MissingInstances {
implicit lazy val eqCNil: Eq[CNil] = Eq.instance((_, _) => false)

implicit def eqHCons[H, T <: HList](implicit eqH: Eq[H], eqT: Eq[T]): Eq[H :: T] =
Eq.instance[H :: T] {
case (h1 :: t1, h2 :: t2) => eqH.eqv(h1, h2) && eqT.eqv(t1, t2)
Eq.instance[H :: T] { case (h1 :: t1, h2 :: t2) =>
eqH.eqv(h1, h2) && eqT.eqv(t1, t2)
}

implicit def eqCCons[L, R <: Coproduct](implicit eqL: Eq[L], eqR: Eq[R]): Eq[L :+: R] =
Expand Down Expand Up @@ -115,4 +115,4 @@ trait MissingInstances {
Arbitrary(
Gen.containerOfN[C, A](toInt(), A.arbitrary).filter(ca => ev(ca).size == toInt()).map(Sized.wrap[C[A], L])
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import io.circe.testing.CodecTests
import org.scalacheck.Arbitrary
import org.scalacheck.Gen
import shapeless.Nat
import shapeless.{Witness => W}
import shapeless.{ Witness => W }

class RefinedSuite extends CirceMunitSuite {
implicit def refinedEq[T, P, F[_, _]](implicit ev: RefType[F]): Eq[F[T, P]] = {
Expand Down

0 comments on commit e15812d

Please sign in to comment.