sttp.tapir.macros.ModifyMacroSupport.scala Maven / Gradle / Ivy
package sttp.tapir.macros
import scala.annotation.nowarn
import scala.collection.Factory
trait ModifyMacroSupport extends ModifyMacroFunctorSupport {
implicit def traversableModifyFunctor[F[_], A](implicit
fac: Factory[A, F[A]],
ev: F[A] => Iterable[A]
): ModifyFunctor[F, A] =
new ModifyFunctor[F, A] {}
implicit class ModifyEachMap[F[_, _], K, T](t: F[K, T])(implicit @nowarn fac: Factory[(K, T), F[K, T]]) {
// @compileTimeOnly(canOnlyBeUsedInsideModify("each")) TODO
def each: T = sys.error("")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy