Packages

p

cats.kernel

instances

package instances

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. trait AllInstances extends ArraySeqInstances with BigDecimalInstances with BigIntInstances with BitSetInstances with BooleanInstances with ByteInstances with CharInstances with DoubleInstances with EqInstances with EitherInstances with DurationInstances with FloatInstances with FunctionInstances with HashInstances with IntInstances with LazyListInstances with ListInstances with LongInstances with MapInstances with OptionInstances with OrderInstances with PartialOrderInstances with QueueInstances with SetInstances with SeqInstances with ShortInstances with StreamInstances with StringInstances with SymbolInstances with TupleInstances with UnitInstances with UUIDInstances with VectorInstances
  2. trait ArraySeqInstances extends ArraySeqInstances1
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  3. class BigDecimalGroup extends CommutativeGroup[BigDecimal]

    Note that combining, removing, and inverting BigDecimal values will use unlimited precision operations.

    Note that combining, removing, and inverting BigDecimal values will use unlimited precision operations.

    This matches the behavior of Scala 2.12 and earlier versions, but not Scala 2.13, which means that + and |+| (or sum and combineAll) may not agree if you are working with values with limited-precision MathContexts.

  4. trait BigDecimalInstances extends AnyRef
  5. class BigDecimalOrder extends Order[BigDecimal] with Hash[BigDecimal]
  6. class BigIntGroup extends CommutativeGroup[BigInt]
  7. trait BigIntInstances extends AnyRef
  8. class BigIntOrder extends Order[BigInt] with Hash[BigInt] with BigIntUnboundedEnum
  9. trait BigIntUnboundedEnum extends UnboundedEnumerable[BigInt]
  10. trait BitSetInstances extends AnyRef
  11. class BitSetPartialOrder extends PartialOrder[BitSet] with Hash[BitSet]
  12. class BitSetSemilattice extends BoundedSemilattice[BitSet]
  13. trait BooleanBounded extends LowerBounded[Boolean] with UpperBounded[Boolean]
  14. trait BooleanEnumerable extends BoundedEnumerable[Boolean]
  15. trait BooleanInstances extends AnyRef
  16. class BooleanOrder extends Order[Boolean] with Hash[Boolean] with BooleanBounded with BooleanEnumerable
  17. trait ByteBounded extends LowerBounded[Byte] with UpperBounded[Byte]
  18. trait ByteEnumerable extends BoundedEnumerable[Byte]
  19. class ByteGroup extends CommutativeGroup[Byte]
  20. trait ByteInstances extends AnyRef
  21. class ByteOrder extends Order[Byte] with Hash[Byte] with ByteBounded with ByteEnumerable
  22. trait CharBounded extends LowerBounded[Char] with UpperBounded[Char]
  23. trait CharEnumerable extends BoundedEnumerable[Char]
  24. trait CharInstances extends AnyRef
  25. class CharOrder extends Order[Char] with Hash[Char] with CharBounded with CharEnumerable
  26. trait DeadlineBounded extends LowerBounded[Deadline] with UpperBounded[Deadline]
  27. trait DeadlineInstances extends AnyRef
  28. class DeadlineOrder extends Order[Deadline] with Hash[Deadline] with DeadlineBounded
  29. class DoubleGroup extends CommutativeGroup[Double]
  30. trait DoubleInstances extends AnyRef
  31. class DoubleOrder extends Order[Double] with Hash[Double]
  32. trait DurationBounded extends LowerBounded[Duration] with UpperBounded[Duration]
  33. class DurationGroup extends CommutativeGroup[Duration]

    This group models addition, but has a few problematic edge cases.

    This group models addition, but has a few problematic edge cases.

    1. finite values can overflow, throwing an exception 2. inf + (-inf) = undefined, not zero 3. undefined + zero = undefined
  34. trait DurationInstances extends AnyRef
  35. class DurationOrder extends Order[Duration] with Hash[Duration] with DurationBounded

    This ordering is valid for all defined durations.

    This ordering is valid for all defined durations.

    The value Duration.Undefined breaks our laws, because undefined values are not equal to themselves.

  36. class EitherEq[A, B] extends Eq[Either[A, B]]
  37. class EitherHash[A, B] extends EitherEq[A, B] with Hash[Either[A, B]]
  38. trait EitherInstances extends EitherInstances0
  39. trait EqInstances extends EqToEquivConversion
  40. trait FiniteDurationBounded extends LowerBounded[FiniteDuration] with UpperBounded[FiniteDuration]
  41. class FiniteDurationGroup extends CommutativeGroup[FiniteDuration]
  42. trait FiniteDurationInstances extends AnyRef
  43. class FiniteDurationOrder extends Order[FiniteDuration] with Hash[FiniteDuration] with FiniteDurationBounded
  44. class FloatGroup extends CommutativeGroup[Float]

    This is only approximately associative.

  45. trait FloatInstances extends AnyRef
  46. class FloatOrder extends Order[Float] with Hash[Float]

    Due to the way floating-point equality works, this instance is not lawful under equality, but is correct when taken as an approximation of an exact value.

    Due to the way floating-point equality works, this instance is not lawful under equality, but is correct when taken as an approximation of an exact value.

    If you would prefer an absolutely lawful fractional value, you'll need to investigate rational numbers or more exotic types.

  47. trait Function0Group[A] extends Function0Monoid[A] with Group[() => A]
  48. trait Function0Monoid[A] extends Function0Semigroup[A] with Monoid[() => A]
  49. trait Function0Semigroup[A] extends Semigroup[() => A]
  50. trait Function1Group[A, B] extends Function1Monoid[A, B] with Group[(A) => B]
  51. trait Function1Monoid[A, B] extends Function1Semigroup[A, B] with Monoid[(A) => B]
  52. trait Function1Semigroup[A, B] extends Semigroup[(A) => B]
  53. trait FunctionInstances extends FunctionInstances0
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  54. trait HashInstances extends HashToHashingConversion
  55. trait IntBounded extends LowerBounded[Int] with UpperBounded[Int]
  56. trait IntEnumerable extends BoundedEnumerable[Int]
  57. class IntGroup extends CommutativeGroup[Int]
  58. trait IntInstances extends AnyRef
  59. class IntOrder extends Order[Int] with Hash[Int] with IntBounded with IntEnumerable
  60. class LazyListEq[A] extends Eq[LazyList[A]]
  61. class LazyListHash[A] extends LazyListEq[A] with Hash[LazyList[A]]
  62. trait LazyListInstances extends LazyListInstances1
  63. class LazyListOrder[A] extends Order[LazyList[A]]
  64. class LazyListPartialOrder[A] extends PartialOrder[LazyList[A]]
  65. class ListEq[A] extends Eq[List[A]]
  66. class ListHash[A] extends ListEq[A] with Hash[List[A]]
  67. trait ListInstances extends ListInstances1
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  68. class ListOrder[A] extends Order[List[A]]
  69. class ListPartialOrder[A] extends PartialOrder[List[A]]
  70. trait LongBounded extends UpperBounded[Long] with LowerBounded[Long]
  71. trait LongEnumerable extends BoundedEnumerable[Long]
  72. class LongGroup extends CommutativeGroup[Long]
  73. trait LongInstances extends AnyRef
  74. class LongOrder extends Order[Long] with Hash[Long] with LongBounded with LongEnumerable
  75. class MapEq[K, V] extends Eq[Map[K, V]]
  76. class MapHash[K, V] extends MapEq[K, V] with Hash[Map[K, V]]
  77. trait MapInstances extends MapInstances1
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  78. class MapMonoid[K, V] extends Monoid[Map[K, V]]
  79. class OptionEq[A] extends Eq[Option[A]]
  80. class OptionHash[A] extends OptionEq[A] with Hash[Option[A]]
  81. trait OptionInstances extends OptionInstances0
  82. class OptionMonoid[A] extends Monoid[Option[A]]
  83. class OptionOrder[A] extends Order[Option[A]]
  84. class OptionPartialOrder[A] extends PartialOrder[Option[A]]
  85. trait OrderInstances extends OrderToOrderingConversion
  86. trait PartialOrderInstances extends PartialOrderToPartialOrderingConversion
  87. class QueueEq[A] extends Eq[Queue[A]]
  88. class QueueHash[A] extends QueueEq[A] with Hash[Queue[A]]
  89. trait QueueInstances extends QueueInstances1
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  90. class QueueOrder[A] extends Order[Queue[A]]
  91. class QueuePartialOrder[A] extends PartialOrder[Queue[A]]
  92. class SeqEq[A] extends Eq[Seq[A]]
  93. class SeqHash[A] extends SeqEq[A] with Hash[Seq[A]]
  94. trait SeqInstances extends SeqInstances1
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  95. class SeqOrder[A] extends Order[Seq[A]]
  96. class SeqPartialOrder[A] extends PartialOrder[Seq[A]]
  97. class SetHash[A] extends Hash[Set[A]]
  98. trait SetInstances extends SetInstances1
  99. class SetPartialOrder[A] extends PartialOrder[Set[A]]
  100. class SetSemilattice[A] extends BoundedSemilattice[Set[A]]
  101. trait ShortBounded extends LowerBounded[Short] with UpperBounded[Short]
  102. trait ShortEnumerable extends BoundedEnumerable[Short]
  103. class ShortGroup extends CommutativeGroup[Short]
  104. trait ShortInstances extends AnyRef
  105. class ShortOrder extends Order[Short] with Hash[Short] with ShortBounded with ShortEnumerable
  106. class SortedMapCommutativeMonoid[K, V] extends SortedMapMonoid[K, V] with CommutativeMonoid[SortedMap[K, V]]
  107. class SortedMapCommutativeSemigroup[K, V] extends SortedMapSemigroup[K, V] with CommutativeSemigroup[SortedMap[K, V]]
  108. class SortedMapEq[K, V] extends Eq[SortedMap[K, V]]
  109. class SortedMapHash[K, V] extends SortedMapEq[K, V] with Hash[SortedMap[K, V]]
  110. trait SortedMapInstances extends SortedMapInstances3
  111. class SortedMapMonoid[K, V] extends SortedMapSemigroup[K, V] with Monoid[SortedMap[K, V]]
  112. class SortedMapSemigroup[K, V] extends Semigroup[SortedMap[K, V]]
  113. class SortedSetHash[A] extends Hash[SortedSet[A]]
  114. trait SortedSetInstances extends SortedSetInstances1
  115. class SortedSetOrder[A] extends Order[SortedSet[A]]
  116. class SortedSetSemilattice[A] extends BoundedSemilattice[SortedSet[A]]
  117. trait StreamInstances extends StreamInstances1
  118. trait StringInstances extends AnyRef
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  119. trait StringLowerBounded extends LowerBounded[String]
  120. class StringMonoid extends Monoid[String]
  121. class StringOrder extends Order[String] with Hash[String] with StringLowerBounded
  122. trait SymbolInstances extends AnyRef
  123. trait SymbolLowerBounded extends LowerBounded[Symbol]
  124. class SymbolOrder extends Order[Symbol] with Hash[Symbol] with SymbolLowerBounded
  125. trait TupleInstances extends TupleInstances1
  126. trait UUIDBounded extends LowerBounded[UUID] with UpperBounded[UUID]
  127. trait UUIDInstances extends AnyRef
  128. class UnitAlgebra extends BoundedSemilattice[Unit] with CommutativeGroup[Unit]
  129. trait UnitBounded extends LowerBounded[Unit] with UpperBounded[Unit]
  130. trait UnitEnumerable extends BoundedEnumerable[Unit]
  131. trait UnitInstances extends AnyRef
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  132. class UnitOrder extends Order[Unit] with Hash[Unit] with UnitBounded with UnitEnumerable
  133. class VectorEq[A] extends Eq[Vector[A]]
  134. class VectorHash[A] extends VectorEq[A] with Hash[Vector[A]]
  135. trait VectorInstances extends VectorInstances1
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  136. class VectorOrder[A] extends Order[Vector[A]]
  137. class VectorPartialOrder[A] extends PartialOrder[Vector[A]]

Deprecated Type Members

  1. class LazyListMonoid[A] extends Monoid[LazyList[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use LazyListMonoid.apply, which does not allocate a new instance

  2. class ListMonoid[A] extends Monoid[List[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use ListMonoid.apply, which does not allocate a new instance

  3. class QueueMonoid[A] extends Monoid[Queue[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use QueueMonoid.apply, which does not allocate a new instance

  4. class SeqMonoid[A] extends Monoid[Seq[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use SeqMonoid.apply, which does not allocate a new instance

  5. class StreamEq[A] extends Eq[Stream[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0-RC2) Use cats.kernel.instances.lazyList

  6. class StreamHash[A] extends StreamEq[A] with Hash[Stream[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0-RC2) Use cats.kernel.instances.lazyList

  7. class StreamMonoid[A] extends Monoid[Stream[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0-RC2) Use cats.kernel.instances.lazyList

  8. class StreamOrder[A] extends Order[Stream[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0-RC2) Use cats.kernel.instances.lazyList

  9. class StreamPartialOrder[A] extends PartialOrder[Stream[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0-RC2) Use cats.kernel.instances.lazyList

  10. class VectorMonoid[A] extends Monoid[Vector[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.9.0) Use VectorMonoid.apply, which does not allocate a new instance

Value Members

  1. object ArraySeqInstances
  2. object LazyListMonoid extends Serializable
  3. object ListMonoid extends Serializable
  4. object QueueMonoid extends Serializable
  5. object SeqMonoid extends Serializable
  6. object StaticMethods extends HashCompat
    Annotations
    @suppressUnusedImportWarningForScalaVersionSpecific()
  7. object VectorMonoid extends Serializable
  8. object eq extends EqInstances
  9. object hash extends HashInstances
  10. object order extends OrderInstances
  11. object partialOrder extends PartialOrderInstances

Ungrouped