All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttp.tapir.macros.ModifyMacroSupport.scala Maven / Gradle / Ivy

There is a newer version: 1.11.11
Show newest version
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