diff --git a/core/src/main/scala-3/src/main/scala/cats/compat.scala b/core/src/main/scala-3/src/main/scala/cats/compat/package.scala similarity index 91% rename from core/src/main/scala-3/src/main/scala/cats/compat.scala rename to core/src/main/scala-3/src/main/scala/cats/compat/package.scala index f324e9fc4d..1cc8b9ecc4 100644 --- a/core/src/main/scala-3/src/main/scala/cats/compat.scala +++ b/core/src/main/scala-3/src/main/scala/cats/compat/package.scala @@ -19,6 +19,8 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -package cats.compat +package cats -private[cats] type targetName = scala.annotation.targetName +package object compat { + private[cats] type targetName = scala.annotation.targetName +} diff --git a/mima.sbt b/mima.sbt index 67d4cf5c9e..6581068fea 100644 --- a/mima.sbt +++ b/mima.sbt @@ -145,6 +145,10 @@ ThisBuild / mimaBinaryIssueFilters ++= { exclude[ReversedAbstractMethodProblem]("cats.free.ContravariantCoyoneda.k"), exclude[DirectAbstractMethodProblem]("cats.free.Coyoneda.k"), exclude[ReversedAbstractMethodProblem]("cats.free.Coyoneda.k") + ) ++ // https://github.com/typelevel/cats/pull/4315 + Seq( + exclude[MissingClassProblem]("cats.compat.compat$package"), + exclude[MissingClassProblem]("cats.compat.compat$package$") ) }