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

Rerun Simulacrum after rearrangement for Scala.js #3482

Merged
merged 1 commit into from
Jun 18, 2020
Merged
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
22 changes: 11 additions & 11 deletions alleycats-core/src/main/scala/alleycats/ConsK.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ object ConsK {
*/
@inline def apply[F[_]](implicit instance: ConsK[F]): ConsK[F] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllConsKOps[F[_], A](target: F[A])(implicit tc: ConsK[F]): AllOps[F, A] {
type TypeClassType = ConsK[F]
} =
new AllOps[F, A] {
type TypeClassType = ConsK[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[F[_], A] extends Serializable {
type TypeClassType <: ConsK[F]
def self: F[A]
Expand All @@ -42,17 +53,6 @@ object ConsK {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToConsKOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllConsKOps[F[_], A](target: F[A])(implicit tc: ConsK[F]): AllOps[F, A] {
type TypeClassType = ConsK[F]
} =
new AllOps[F, A] {
type TypeClassType = ConsK[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
22 changes: 11 additions & 11 deletions alleycats-core/src/main/scala/alleycats/Empty.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ object Empty extends EmptyInstances0 {
*/
@inline def apply[A](implicit instance: Empty[A]): Empty[A] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllEmptyOps[A](target: A)(implicit tc: Empty[A]): AllOps[A] {
type TypeClassType = Empty[A]
} =
new AllOps[A] {
type TypeClassType = Empty[A]
val self: A = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[A] extends Serializable {
type TypeClassType <: Empty[A]
def self: A
Expand All @@ -52,17 +63,6 @@ object Empty extends EmptyInstances0 {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToEmptyOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllEmptyOps[A](target: A)(implicit tc: Empty[A]): AllOps[A] {
type TypeClassType = Empty[A]
} =
new AllOps[A] {
type TypeClassType = Empty[A]
val self: A = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
22 changes: 11 additions & 11 deletions alleycats-core/src/main/scala/alleycats/EmptyK.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ object EmptyK {
*/
@inline def apply[F[_]](implicit instance: EmptyK[F]): EmptyK[F] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllEmptyKOps[F[_], A](target: F[A])(implicit tc: EmptyK[F]): AllOps[F, A] {
type TypeClassType = EmptyK[F]
} =
new AllOps[F, A] {
type TypeClassType = EmptyK[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[F[_], A] extends Serializable {
type TypeClassType <: EmptyK[F]
def self: F[A]
Expand All @@ -42,17 +53,6 @@ object EmptyK {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToEmptyKOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllEmptyKOps[F[_], A](target: F[A])(implicit tc: EmptyK[F]): AllOps[F, A] {
type TypeClassType = EmptyK[F]
} =
new AllOps[F, A] {
type TypeClassType = EmptyK[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
22 changes: 11 additions & 11 deletions alleycats-core/src/main/scala/alleycats/Extract.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ object Extract {
*/
@inline def apply[F[_]](implicit instance: Extract[F]): Extract[F] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllExtractOps[F[_], A](target: F[A])(implicit tc: Extract[F]): AllOps[F, A] {
type TypeClassType = Extract[F]
} =
new AllOps[F, A] {
type TypeClassType = Extract[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[F[_], A] extends Serializable {
type TypeClassType <: Extract[F]
def self: F[A]
Expand All @@ -53,17 +64,6 @@ object Extract {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToExtractOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllExtractOps[F[_], A](target: F[A])(implicit tc: Extract[F]): AllOps[F, A] {
type TypeClassType = Extract[F]
} =
new AllOps[F, A] {
type TypeClassType = Extract[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
22 changes: 11 additions & 11 deletions alleycats-core/src/main/scala/alleycats/One.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ object One {
*/
@inline def apply[A](implicit instance: One[A]): One[A] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllOneOps[A](target: A)(implicit tc: One[A]): AllOps[A] {
type TypeClassType = One[A]
} =
new AllOps[A] {
type TypeClassType = One[A]
val self: A = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[A] extends Serializable {
type TypeClassType <: One[A]
def self: A
Expand All @@ -49,17 +60,6 @@ object One {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToOneOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllOneOps[A](target: A)(implicit tc: One[A]): AllOps[A] {
type TypeClassType = One[A]
} =
new AllOps[A] {
type TypeClassType = One[A]
val self: A = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
22 changes: 11 additions & 11 deletions alleycats-core/src/main/scala/alleycats/Pure.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ object Pure {
*/
@inline def apply[F[_]](implicit instance: Pure[F]): Pure[F] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllPureOps[F[_], A](target: F[A])(implicit tc: Pure[F]): AllOps[F, A] {
type TypeClassType = Pure[F]
} =
new AllOps[F, A] {
type TypeClassType = Pure[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[F[_], A] extends Serializable {
type TypeClassType <: Pure[F]
def self: F[A]
Expand All @@ -52,17 +63,6 @@ object Pure {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToPureOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllPureOps[F[_], A](target: F[A])(implicit tc: Pure[F]): AllOps[F, A] {
type TypeClassType = Pure[F]
} =
new AllOps[F, A] {
type TypeClassType = Pure[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
22 changes: 11 additions & 11 deletions alleycats-core/src/main/scala/alleycats/Zero.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ object Zero {
*/
@inline def apply[A](implicit instance: Zero[A]): Zero[A] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllZeroOps[A](target: A)(implicit tc: Zero[A]): AllOps[A] {
type TypeClassType = Zero[A]
} =
new AllOps[A] {
type TypeClassType = Zero[A]
val self: A = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[A] extends Serializable {
type TypeClassType <: Zero[A]
def self: A
Expand All @@ -50,17 +61,6 @@ object Zero {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToZeroOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllZeroOps[A](target: A)(implicit tc: Zero[A]): AllOps[A] {
type TypeClassType = Zero[A]
} =
new AllOps[A] {
type TypeClassType = Zero[A]
val self: A = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lazy val scoverageSettings = Seq(
)

organization in ThisBuild := "org.typelevel"
scalafixDependencies in ThisBuild += "org.typelevel" %% "simulacrum-scalafix" % "0.4.0"
scalafixDependencies in ThisBuild += "org.typelevel" %% "simulacrum-scalafix" % "0.5.0"

val isTravisBuild = settingKey[Boolean]("Flag indicating whether the current build is running under Travis")
val crossScalaVersionsFromTravis = settingKey[Seq[String]]("Scala versions set in .travis.yml as scala_version_XXX")
Expand Down Expand Up @@ -80,7 +80,7 @@ lazy val catsSettings = Seq(
lazy val simulacrumSettings = Seq(
addCompilerPlugin(scalafixSemanticdb),
scalacOptions ++= Seq(s"-P:semanticdb:targetroot:${baseDirectory.value}/target/.semanticdb", "-Yrangepos"),
libraryDependencies += "org.typelevel" %% "simulacrum-scalafix-annotations" % "0.4.0",
libraryDependencies += "org.typelevel" %% "simulacrum-scalafix-annotations" % "0.5.0",
pomPostProcess := { (node: xml.Node) =>
new RuleTransformer(new RewriteRule {
override def transform(node: xml.Node): Seq[xml.Node] =
Expand Down
22 changes: 11 additions & 11 deletions core/src/main/scala/cats/Align.scala
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,17 @@ object Align extends ScalaVersionSpecificAlignInstances {
*/
@inline def apply[F[_]](implicit instance: Align[F]): Align[F] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllAlignOps[F[_], A](target: F[A])(implicit tc: Align[F]): AllOps[F, A] {
type TypeClassType = Align[F]
} =
new AllOps[F, A] {
type TypeClassType = Align[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[F[_], A] extends Serializable {
type TypeClassType <: Align[F]
def self: F[A]
Expand All @@ -164,17 +175,6 @@ object Align extends ScalaVersionSpecificAlignInstances {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToAlignOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllAlignOps[F[_], A](target: F[A])(implicit tc: Align[F]): AllOps[F, A] {
type TypeClassType = Align[F]
} =
new AllOps[F, A] {
type TypeClassType = Align[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
22 changes: 11 additions & 11 deletions core/src/main/scala/cats/Alternative.scala
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ object Alternative {
*/
@inline def apply[F[_]](implicit instance: Alternative[F]): Alternative[F] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllAlternativeOps[F[_], A](target: F[A])(implicit tc: Alternative[F]): AllOps[F, A] {
type TypeClassType = Alternative[F]
} =
new AllOps[F, A] {
type TypeClassType = Alternative[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[F[_], A] extends Serializable {
type TypeClassType <: Alternative[F]
def self: F[A]
Expand All @@ -127,17 +138,6 @@ object Alternative {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToAlternativeOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllAlternativeOps[F[_], A](target: F[A])(implicit tc: Alternative[F]): AllOps[F, A] {
type TypeClassType = Alternative[F]
} =
new AllOps[F, A] {
type TypeClassType = Alternative[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
22 changes: 11 additions & 11 deletions core/src/main/scala/cats/Applicative.scala
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,17 @@ object Applicative {
*/
@inline def apply[F[_]](implicit instance: Applicative[F]): Applicative[F] = instance

@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllApplicativeOps[F[_], A](target: F[A])(implicit tc: Applicative[F]): AllOps[F, A] {
type TypeClassType = Applicative[F]
} =
new AllOps[F, A] {
type TypeClassType = Applicative[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}
trait Ops[F[_], A] extends Serializable {
type TypeClassType <: Applicative[F]
def self: F[A]
Expand All @@ -259,17 +270,6 @@ object Applicative {
}
@deprecated("Use cats.syntax object imports", "2.2.0")
object nonInheritedOps extends ToApplicativeOps
@deprecated("Use cats.syntax object imports", "2.2.0")
object ops {
implicit def toAllApplicativeOps[F[_], A](target: F[A])(implicit tc: Applicative[F]): AllOps[F, A] {
type TypeClassType = Applicative[F]
} =
new AllOps[F, A] {
type TypeClassType = Applicative[F]
val self: F[A] = target
val typeClassInstance: TypeClassType = tc
}
}

/* ======================================================================== */
/* END OF SIMULACRUM-MANAGED CODE */
Expand Down
Loading