sealed abstract
class
Inject[F[_], G[_]] extends ~>[F, G]
Abstract Value Members
-
abstract
def
inj[A](fa: F[A]): G[A]
-
abstract
def
prj[A](ga: G[A]): Option[F[A]]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
andThen[H[_]](f: ~>[G, H]): ~>[F, H]
-
def
apply[A](fa: F[A]): G[A]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
compose[E[_]](f: ~>[E, F]): ~>[E, G]
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
narrow[FF[_]](implicit ev: <~~<[FF, F]): ~>[FF, G]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
or[H[_]](hg: ~>[H, G]): ~>[[γ$1$]Coproduct[F, H, γ$1$], G]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
unapply[A](ga: G[A]): Option[F[A]]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
widen[GG[_]](implicit ev: >~~>[GG, G]): ~>[F, GG]
Inject type class as described in "Data types a la carte" (Swierstra 2008).
http://www.staff.science.uu.nl/~swier004/Publications/DataTypesALaCarte.pdf