Skip to content

Commit

Permalink
Removed unneeded catsSyntaxEq overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown committed Mar 5, 2020
1 parent 00d3ab0 commit 04d7b63
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package alleycats.tests
import alleycats.std.MapInstances
import cats._
import cats.instances.all._
import cats.syntax.EqOps
import cats.tests.StrictCatsEquality
import org.scalatest.funsuite.AnyFunSuiteLike
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks
Expand All @@ -29,10 +28,6 @@ trait AlleycatsSuite
implicit override val generatorDrivenConfig: PropertyCheckConfiguration =
checkConfiguration

// disable Eq syntax (by making `catsSyntaxEq` not implicit), since it collides
// with scalactic's equality
def catsSyntaxEq[A: Eq](a: A): EqOps[A] = new EqOps[A](a)

implicit def EqIterable[A: Eq]: Eq[Iterable[A]] = Eq.by(_.toList)
}

Expand Down
6 changes: 0 additions & 6 deletions tests/src/test/scala/cats/tests/CatsSuite.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package cats.tests

import cats.kernel.Eq
import cats.platform.Platform
import cats.syntax._
import org.scalactic.anyvals.{PosInt, PosZDouble, PosZInt}
import org.scalatest.funsuite.AnyFunSuiteLike
import org.scalatest.matchers.should.Matchers
Expand Down Expand Up @@ -41,10 +39,6 @@ trait CatsSuite
implicit override val generatorDrivenConfig: PropertyCheckConfiguration =
checkConfiguration

// disable Eq syntax (by making `catsSyntaxEq` not implicit), since it collides
// with scalactic's equality
def catsSyntaxEq[A: Eq](a: A): EqOps[A] = new EqOps[A](a)

def even(i: Int): Boolean = i % 2 == 0

val evenPf: PartialFunction[Int, Int] = { case i if even(i) => i }
Expand Down

0 comments on commit 04d7b63

Please sign in to comment.