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

pipez.PipeAutoSupport.scala Maven / Gradle / Ivy

The newest version!
package pipez

import scala.language.experimental.macros

/** Mix-in providing `derive` method for automatic `Pipe` derivation allowing recursion but not custom configuration */
trait PipeAutoSupport[Pipe[_, _]] {

  /** Derives `Pipe[In, Out]` using default settings, defined as implicit */
  implicit def deriveAutomatic[In, Out](implicit
    pipeDerivation: PipeDerivation[Pipe]
  ): Pipe[In, Out] = macro pipez.internal.Macro.deriveDefault[Pipe, In, Out]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy