trait TypeClass[C[_]] extends ProductTypeClass[C]
A type class additionally abstracting over the coproduct
operation of type
classes over types of kind *
.
- Alphabetic
- By Inheritance
- TypeClass
- ProductTypeClass
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
coproduct[L, R <: Coproduct](cl: ⇒ C[L], cr: ⇒ C[R]): C[:+:[L, R]]
Given two type class instances for
L
andR
, produce a type class instance for the coproductL :+: R
. -
abstract
def
emptyCoproduct: C[CNil]
The empty coproduct
-
abstract
def
emptyProduct: C[HNil]
The empty product.
The empty product.
- Definition Classes
- ProductTypeClass
-
abstract
def
product[H, T <: HList](ch: C[H], ct: C[T]): C[::[H, T]]
Given a type class instance for
H
, and a type class instance for a product, produce a type class instance for the product prepended withH
.Given a type class instance for
H
, and a type class instance for a product, produce a type class instance for the product prepended withH
.- Definition Classes
- ProductTypeClass
-
abstract
def
project[F, G](instance: ⇒ C[G], to: (F) ⇒ G, from: (G) ⇒ F): C[F]
Given an isomorphism between
F
andG
, and a type class instance forG
, produce a type class instance forF
.Given an isomorphism between
F
andG
, and a type class instance forG
, produce a type class instance forF
.- Definition Classes
- ProductTypeClass
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )