Skip to content

Commit

Permalink
remove unnecessary macro-compat dependency (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored and julien-truffaut committed Jan 31, 2019
1 parent bfcfb8b commit 15532ab
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ lazy val discipline = Def.setting("org.typelevel" %%% "discipline"
lazy val scalacheck = Def.setting("org.scalacheck" %%% "scalacheck" % "1.14.0")
lazy val scalatest = Def.setting("org.scalatest" %%% "scalatest" % "3.0.6-SNAP5" % "test")

lazy val macroCompat = Def.setting("org.typelevel" %%% "macro-compat" % "1.1.1")

lazy val macroVersion = "2.1.1"

lazy val paradisePlugin = Def.setting{
Expand Down Expand Up @@ -202,7 +200,6 @@ lazy val macros = crossProject(JVMPlatform, JSPlatform).dependsOn(core)
libraryDependencies ++= Seq(
scalaOrganization.value % "scala-reflect" % scalaVersion.value,
scalaOrganization.value % "scala-compiler" % scalaVersion.value % "provided",
macroCompat.value
),
libraryDependencies ++= paradisePlugin.value,
libraryDependencies ++= CrossVersion partialVersion scalaVersion.value collect {
Expand Down
3 changes: 0 additions & 3 deletions macro/shared/src/main/scala/monocle/macros/GenIso.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ object GenIso {
def fields[S]: Iso[S, _] = macro GenIsoImplW.genIso_fields_impl[S]
}

@macrocompat.bundle
sealed abstract class GenIsoImplBase {
val c: blackbox.Context
import c.universe._
Expand Down Expand Up @@ -57,7 +56,6 @@ sealed abstract class GenIsoImplBase {
}
}

@macrocompat.bundle
class GenIsoImpl(override val c: blackbox.Context) extends GenIsoImplBase {
import c.universe._

Expand Down Expand Up @@ -101,7 +99,6 @@ class GenIsoImpl(override val c: blackbox.Context) extends GenIsoImplBase {
c.Expr[Iso[S, Unit]](genIso_unit_tree[S])
}

@macrocompat.bundle
class GenIsoImplW(override val c: whitebox.Context) extends GenIsoImplBase {
import c.universe._

Expand Down
1 change: 0 additions & 1 deletion macro/shared/src/main/scala/monocle/macros/GenPrism.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ object GenPrism {
def apply[S, A <: S]: Prism[S, A] = macro GenPrismImpl.genPrism_impl[S, A]
}

@macrocompat.bundle
private class GenPrismImpl(val c: blackbox.Context) {
def genPrism_impl[S: c.WeakTypeTag, A: c.WeakTypeTag]: c.Expr[Prism[S, A]] = {
import c.universe._
Expand Down
1 change: 0 additions & 1 deletion macro/shared/src/main/scala/monocle/macros/Lenses.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class PLenses(prefix: String = "") extends scala.annotation.StaticAnnotation {
def macroTransform(annottees: Any*): Any = macro LensesImpl.plensesAnnotationMacro
}

@macrocompat.bundle
private[macros] class LensesImpl(val c: blackbox.Context) {

def lensesAnnotationMacro(annottees: c.Expr[Any]*): c.Expr[Any] = annotationMacro(annottees, poly = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ object Macro {
def mkLens[S, T, A, B](fieldName: String): PLens[S, T, A, B] = macro MacroImpl.mkLens_impl[S, T, A, B]
}

@macrocompat.bundle
private[macros] class MacroImpl(val c: blackbox.Context) {
def genLens_impl[S: c.WeakTypeTag, A: c.WeakTypeTag](field: c.Expr[S => A]): c.Expr[Lens[S, A]] = {
import c.universe._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class GenApplyLensOps[A](val value: A) extends AnyVal {
def lens[C]( field: A => C ): ApplyLens[A,A,C,C] = macro GenApplyLensOpsImpl.lens_impl[A, C]
}

@macrocompat.bundle
class GenApplyLensOpsImpl(val c: blackbox.Context){
def lens_impl[A: c.WeakTypeTag, C](field: c.Expr[A => C]): c.Expr[ApplyLens[A,A,C,C]] = {
import c.universe._
Expand Down

0 comments on commit 15532ab

Please sign in to comment.