ContraExternalizer

libretto.CoreLib.ContraExternalizer
See theContraExternalizer companion object
trait ContraExternalizer[F[_]]

Contravariant functor from category -⚬ to the category => of Scala functions. It takes a morphism A -⚬ B internal to the DSL and maps it to a morphism F[B] => F[A] in the meta language (Scala), i.e. external to the DSL.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Abstract methods

def lift[A, B](f: A -⚬ B): F[B] => F[A]

Concrete methods

def [G[_]](that: Functor[G]): ContraExternalizer[[x] =>> F[G[x]]]
def [G[_]](that: ContraFunctor[G]): Externalizer[[x] =>> F[G[x]]]