pipez.PipeSemiautoSupport.scala Maven / Gradle / Ivy
The newest version!
package pipez
import scala.language.experimental.macros
/** Mix-in providing `derive` method for semiautomatic `Pipe` derivation without recursion and default config */
trait PipeSemiautoSupport[Pipe[_, _]] {
/** Derives `Pipe[In, Out]` using default settings */
def derive[In, Out](implicit
pipeDerivation: PipeDerivation[Pipe]
): Pipe[In, Out] = macro pipez.internal.Macro.deriveDefault[Pipe, In, Out]
}