Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cats-core, cats-laws to 2.2.0 #1162

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/typelevel/cats-effect"), "git@github.com:typelevel/cats-effect.git")
)

val CatsVersion = "2.2.0-RC4"
val CatsVersion = "2.2.0"
val DisciplineScalatestVersion = "2.0.1"
val SilencerVersion = "1.7.1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cats
package effect
package internals

import cats.implicits._
import cats.syntax.all._
import scala.concurrent.duration._
import scala.scalajs.js

Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/cats/effect/Async.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package cats
package effect

import cats.implicits._
import cats.syntax.all._
import cats.data._
import cats.effect.IO.{Delay, Pure, RaiseError}
import cats.effect.concurrent.{Deferred, Ref, Semaphore}
Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/cats/effect/Resource.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import cats.data.AndThen
import cats.effect.ExitCase.Completed
import cats.effect.concurrent.Ref
import cats.effect.internals.ResourcePlatform
import cats.implicits._
import cats.syntax.all._
import cats.effect.implicits._

import scala.annotation.tailrec
Expand Down
1 change: 0 additions & 1 deletion core/shared/src/main/scala/cats/effect/Sync.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package effect
import cats.data._
import cats.effect.concurrent.Ref
import cats.syntax.all._
import cats.instances.tuple._
import scala.annotation.implicitNotFound

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cats
package effect
package concurrent

import cats.implicits._
import cats.syntax.all._
import cats.effect.internals.{Callback, TrampolineEC}
import java.util.concurrent.atomic.AtomicReference

Expand Down
3 changes: 0 additions & 3 deletions core/shared/src/main/scala/cats/effect/concurrent/Ref.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ import cats.data.State
import java.util.concurrent.atomic.{AtomicBoolean, AtomicReference}

import cats.effect.concurrent.Ref.TransformedRef
import cats.instances.tuple._
import cats.instances.function._
import cats.instances.either._
import cats.syntax.functor._
import cats.syntax.bifunctor._
import cats.syntax.flatMap._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package effect
package concurrent

import cats.effect.concurrent.Semaphore.TransformedSemaphore
import cats.implicits._
import cats.syntax.all._

import scala.collection.immutable.Queue

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package cats.effect.internals

import cats.effect.{ContextShift, Fiber, IO}
import cats.implicits._
import cats.syntax.all._
import scala.concurrent.Promise

private[effect] object IOStart {
Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/test/scala/cats/effect/AsyncTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cats.effect
import cats.Eq
import cats.effect.concurrent.Ref
import cats.effect.implicits._
import cats.implicits._
import cats.syntax.all._
import org.scalatest.compatible.Assertion
import org.scalatest.funsuite.AsyncFunSuite
import org.scalatest.Succeeded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cats.effect
import cats.Eq
import cats.effect.concurrent.Ref
import cats.effect.implicits._
import cats.implicits._
import cats.syntax.all._
import org.scalatest.compatible.Assertion
import org.scalatest.funsuite.AsyncFunSuite
import org.scalatest.Succeeded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package concurrent

import scala.concurrent.ExecutionContext
import scala.concurrent.duration._
import cats.implicits._
import cats.syntax.all._
import org.scalatest._
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AsyncFunSuite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cats.effect
package concurrent

import cats.effect.internals.Platform
import cats.implicits._
import cats.syntax.all._
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AsyncFunSuite
import scala.concurrent.ExecutionContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package effect
package concurrent

import cats.data.State
import cats.implicits._
import cats.syntax.all._
import org.scalatest.Succeeded
import org.scalatest.matchers.should.Matchers
import org.scalatest.compatible.Assertion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cats
package effect
package concurrent

import cats.implicits._
import cats.syntax.all._
import org.scalatest.{Assertion, EitherValues}
import org.scalatest.funsuite.AsyncFunSuite
import org.scalatest.matchers.should.Matchers
Expand Down
2 changes: 1 addition & 1 deletion laws/jvm/src/test/scala/cats/effect/DeferredJVMTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cats.effect

import java.util.concurrent.{ExecutorService, Executors, ThreadFactory, TimeUnit}
import concurrent.Deferred
import cats.implicits._
import cats.syntax.all._
import java.util.concurrent.atomic.{AtomicBoolean, AtomicLong}
import org.scalatest.BeforeAndAfter
import org.scalatest.matchers.should.Matchers
Expand Down
2 changes: 1 addition & 1 deletion laws/jvm/src/test/scala/cats/effect/MVarJVMTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import java.util.concurrent.{ExecutorService, Executors, ThreadFactory, TimeUnit
import java.util.concurrent.atomic.{AtomicBoolean, AtomicLong}

import cats.effect.concurrent.{Deferred, MVar, MVar2}
import cats.implicits._
import cats.syntax.all._
import org.scalatest.BeforeAndAfter
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AnyFunSuite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import java.util.concurrent.{ExecutorService, Executors, ThreadFactory, TimeUnit
import java.util.concurrent.atomic.{AtomicBoolean, AtomicLong}

import cats.effect.concurrent.{Deferred, Semaphore}
import cats.implicits._
import cats.syntax.all._
import org.scalatest.BeforeAndAfter
import org.scalatest.matchers.should.Matchers
import org.scalatest.funsuite.AnyFunSuite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package laws

import cats.effect.ExitCase.{Completed, Error}
import cats.effect.concurrent.Deferred
import cats.implicits._
import cats.syntax.all._
import cats.laws._

import scala.util.Either
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cats
package effect
package laws

import cats.implicits._
import cats.syntax.all._
import cats.laws._

trait BracketLaws[F[_], E] extends MonadErrorLaws[F, E] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package effect
package laws

import cats.effect.concurrent.Deferred
import cats.implicits._
import cats.syntax.all._
import cats.laws._

import scala.concurrent.Promise
Expand Down
2 changes: 1 addition & 1 deletion laws/shared/src/main/scala/cats/effect/laws/SyncLaws.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cats
package effect
package laws

import cats.implicits._
import cats.syntax.all._
import cats.laws._

trait SyncLaws[F[_]] extends BracketLaws[F, Throwable] with DeferLaws[F] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package cats.effect

import cats.effect.concurrent.{Deferred, MVar}
import cats.implicits._
import cats.syntax.all._
import cats.laws._
import cats.laws.discipline._
import org.scalatest.Succeeded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package cats.effect

import cats.effect.concurrent.Ref
import cats.implicits._
import cats.syntax.all._
import cats.effect.implicits._
import scala.util.Success
import cats.effect.concurrent.Deferred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package cats.effect

import cats.data._
import cats.effect.laws.util.TestContext
import cats.implicits._
import scala.util.Success

class ContextShiftTests extends BaseTestsSuite {
Expand Down
2 changes: 1 addition & 1 deletion laws/shared/src/test/scala/cats/effect/FiberTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cats
package effect

import cats.effect.laws.discipline.arbitrary._
import cats.implicits._
import cats.syntax.all._
import cats.kernel.laws.discipline.{MonoidTests, SemigroupTests}
import cats.laws.discipline.ApplicativeTests
import org.scalacheck.{Arbitrary, Cogen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import java.util.concurrent.atomic.AtomicInteger

import cats.effect.internals.{Callback, CancelUtils, Conversions}
import cats.effect.laws.discipline.arbitrary._
import cats.implicits._
import cats.laws._
import cats.laws.discipline._

Expand Down
2 changes: 1 addition & 1 deletion laws/shared/src/test/scala/cats/effect/IOTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import cats.effect.concurrent.Deferred
import cats.effect.internals.{Callback, IOPlatform}
import cats.effect.laws.discipline.{ConcurrentEffectTests, EffectTests}
import cats.effect.laws.discipline.arbitrary._
import cats.implicits._
import cats.syntax.all._
import cats.kernel.laws.discipline.MonoidTests
import cats.laws._
import cats.laws.discipline._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import cats.data._
import cats.effect.Sync._
import cats.effect.laws.discipline._
import cats.effect.laws.discipline.arbitrary._
import cats.implicits._
import cats.laws.discipline.arbitrary._

class InstancesTests extends BaseTestsSuite {
Expand Down
2 changes: 1 addition & 1 deletion laws/shared/src/test/scala/cats/effect/MemoizeTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package cats
package effect

import cats.implicits._
import cats.syntax.all._
import cats.effect.concurrent.{Deferred, Ref}
import scala.concurrent.duration._
import scala.util.{Success}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package cats.effect

import cats.effect.laws.discipline.EffectTests
import cats.effect.laws.discipline.arbitrary._
import cats.implicits._

/**
* Tests laws for a dummy data type that is not
Expand Down
1 change: 0 additions & 1 deletion laws/shared/src/test/scala/cats/effect/RefTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package cats.effect

import cats.effect.concurrent.Ref
import cats.implicits._
import cats.kernel.Eq
import cats.laws.discipline._
import org.scalacheck.Arbitrary
Expand Down
2 changes: 1 addition & 1 deletion laws/shared/src/test/scala/cats/effect/ResourceTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import cats.data.Kleisli
import cats.effect.concurrent.Deferred
import cats.effect.laws.discipline.arbitrary._
import cats.effect.laws.util.TestContext
import cats.implicits._
import cats.syntax.all._
import cats.kernel.laws.discipline.MonoidTests
import cats.laws._
import cats.laws.discipline._
Expand Down
2 changes: 1 addition & 1 deletion laws/shared/src/test/scala/cats/effect/SyncIOTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package effect

import cats.effect.laws.discipline.SyncEffectTests
import cats.effect.laws.discipline.arbitrary._
import cats.implicits._
import cats.syntax.all._
import cats.kernel.laws.discipline.MonoidTests
import cats.laws._
import cats.laws.discipline._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package cats.effect

import cats.implicits._
import cats.syntax.all._
import cats.effect.tracing.IOTrace
import org.scalatest.funsuite.AsyncFunSuite
import org.scalatest.matchers.should.Matchers
Expand Down