NaturalTransformation

trait NaturalTransformation[F[_], G[_]]

A universally quantified function, usually written as F ~> G, for symmetry with A => B.

Can be used to encode first-class functor transformations in the same way functions encode first-class concrete value morphisms; for example, sequence from scalaz.Traverse and cosequence from scalaz.Distributive give rise to ([a]T[A[a]]) ~> ([a]A[T[a]]), for varying A and T constraints.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply[A](fa: F[A]): G[A]

Concrete methods

def narrow[FF[_]](implicit ev: LiskovF[FF, F]): NaturalTransformation[FF, G]
def or[H[_]](hg: NaturalTransformation[H, G]): NaturalTransformation[[_] =>> Coproduct[F, H, _$6], G]

Combines this scalaz.NaturalTransformation with another one to create one that can transform scalaz.Coproduct.

Combines this scalaz.NaturalTransformation with another one to create one that can transform scalaz.Coproduct.

The current NaturalTransformation will be used to transform the Left (F) value of the scalaz.Coproduct while the other one will be used to transform the Right (H) value.

def widen[GG[_]](implicit ev: GG >~~> G): NaturalTransformation[F, GG]