Packages

c

monix.eval.instances

CatsMonadToMonoid

class CatsMonadToMonoid[F[_], A] extends CatsMonadToSemigroup[F, A] with Monoid[F[A]]

Given that A has a cats.Semigroup implementation, this builds a Semigroup[F[A]] instance for any F[_] data type that implements cats.Monad.

Used for both Task and monix.eval.Coeval.

NOTE: nothing in this implementation is specific to Monix or to cats-effect, but these instances are not provided by default by Cats for any monad, probably because they aren't useful for every monad.

Source
CatsMonadToMonoid.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CatsMonadToMonoid
  2. Monoid
  3. CatsMonadToSemigroup
  4. Semigroup
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CatsMonadToMonoid()(implicit F: Monad[F], A: Monoid[A])

Value Members

  1. def combine(x: F[A], y: F[A]): F[A]
    Definition Classes
    CatsMonadToSemigroup → Semigroup
  2. def combineAll(as: IterableOnce[F[A]]): F[A]
    Definition Classes
    Monoid
  3. def combineAllOption(as: IterableOnce[F[A]]): Option[F[A]]
    Definition Classes
    Monoid → Semigroup
  4. def combineN(a: F[A], n: Int): F[A]
    Definition Classes
    Monoid → Semigroup
  5. def empty: F[A]
    Definition Classes
    CatsMonadToMonoid → Monoid
  6. def intercalate(middle: F[A]): Semigroup[F[A]]
    Definition Classes
    Semigroup
  7. def isEmpty(a: F[A])(implicit ev: Eq[F[A]]): Boolean
    Definition Classes
    Monoid
  8. def reverse: Monoid[F[A]]
    Definition Classes
    Monoid → Semigroup