scalaz.typelevel

KTypeClass

trait KTypeClass[C[_[_]]] extends AnyRef

A type class abstracting over the product and compose operations of type classes over types of kind * -> *.

It serves as a replacement for the various Product* classes in scalaz.

Multiplication of instances is done via wrappers which are unpacked automatically if the implicits of scalaz.syntax.typelevel.TypeClasses are imported.

Source
KTypeClass.scala
See also

scalaz.typelevel.TCList

scalaz.syntax.typelevel.TypeClasses

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KTypeClass
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def _emptyProduct: C[[α]GenericNil[[+X]X]]

    Attributes
    protected
  2. abstract def _idCompose: C[[α]α]

    Attributes
    protected
  3. abstract def compose[F[_], T <: TCList](FOuter: C[F], FInner: C[compose.T.Composed]): C[[α]F[compose.T.Composed[α]]]

    Given a type class instance for F, and a type class instance for a composition, produce a type class instance for the composition wrapped by F.

    Given a type class instance for F, and a type class instance for a composition, produce a type class instance for the composition wrapped by F.

    Note

    Users of this class should start with idCompose and use the functions on scalaz.typelevel.KTypeClass.WrappedComposition, which greatly improves type inference.

  4. abstract def product[F[_], T <: TCList](FHead: C[F], FTail: C[product.T.Product]): C[[α]GenericCons[[+X]X, F[α], product.T.Product[α]]]

    Given a type class instance for F, and a type class instance for a product, produce a type class instance for the product prepended with F.

    Given a type class instance for F, and a type class instance for a product, produce a type class instance for the product prepended with F.

    Note

    Users of this class should start with emptyProduct and use the functions on scalaz.typelevel.KTypeClass.WrappedProduct, which greatly improves type inference.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def compose2[F[_], G[_]](implicit F: C[F], G: C[G]): C[[α]F[G[α]]]

    The unwrapped composition of two instances.

  7. final def compose3[F[_], G[_], H[_]](implicit F: C[F], G: C[G], H: C[H]): C[[α]F[G[H[α]]]]

    The unwrapped composition of three instances.

  8. final def emptyProduct: WrappedProduct[C, TCNil]

    The empty product.

    The empty product.

    returns

    an instance of scalaz.typelevel.KTypeClass.WrappedProduct representing an empty product

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def idCompose: WrappedComposition[C, TCNil]

    The empty composition.

    The empty composition.

    returns

    an instance of scalaz.typelevel.KTypeClass.WrappedComposition representing an empty composition

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. final def product1[F[_]](implicit F: C[F]): C[[α]GenericCons[[+X]X, F[α], GenericNil[[+X]X]]]

    The unwrapped product containing one element.

  20. final def product2[F[_], G[_]](implicit F: C[F], G: C[G]): C[[α]GenericCons[[+X]X, F[α], GenericCons[[+X]X, G[α], GenericNil[[+X]X]]]]

    The unwrapped product containing two elements.

  21. final def product3[F[_], G[_], H[_]](implicit F: C[F], G: C[G], H: C[H]): C[[α]GenericCons[[+X]X, F[α], GenericCons[[+X]X, G[α], GenericCons[[+X]X, H[α], GenericNil[[+X]X]]]]]

    The unwrapped product containing three elements.

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped