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

pipez.PipeDerivationPlatform.scala Maven / Gradle / Ivy

There is a newer version: 0.5.1
Show newest version
package pipez

import scala.language.experimental.macros

private[pipez] trait PipeDerivationPlatform { self: PipeDerivation.type =>

  def derive[Pipe[_, _], In, Out](implicit
    pipeDerivation: PipeDerivation[Pipe]
  ): Pipe[In, Out] = macro pipez.internal.Macro.deriveDefault[Pipe, In, Out]

  def derive[Pipe[_, _], In, Out](
    config: PipeDerivationConfig[Pipe, In, Out]
  )(implicit
    pipeDerivation: PipeDerivation[Pipe]
  ): Pipe[In, Out] = macro pipez.internal.Macro.deriveConfigured[Pipe, In, Out]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy