object MonadRec extends Serializable
- Source
- MonadRec.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MonadRec
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
trait
Instance[F[_]] extends MonadRec[F] with Type[F] with Monad.Instance[F]
The
MonadRec.Instance
provides the means to combine MonadRec instances with other type-classes.The
MonadRec.Instance
provides the means to combine MonadRec instances with other type-classes.To be inherited by
MonadRec
instances. -
trait
Laws[F[_]] extends Monad.Laws[F] with Type[F]
Laws for MonadRec.
-
trait
Type[F[_]] extends Monad.Type[F]
The
MonadRec.Type
should be inherited in type-classes that are derived from MonadRec.
Value Members
-
def
apply[F[_]](implicit F: MonadRec[F]): MonadRec[F]
- Annotations
- @inline()
-
final
def
defaultTailRecM[F[_], A, B](a: A)(f: (A) ⇒ F[Either[A, B]])(implicit F: Monad[F]): F[B]
A reusable implementation for MonadRec.tailRecM that relies on Monad.flatMap.
A reusable implementation for MonadRec.tailRecM that relies on Monad.flatMap.
NOTE: this is UNSAFE to use in case
flatMap
is not tail-recursive.
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.types implements type-class shims, to be translated to type-classes provided by libraries such as Cats or Scalaz.
monix.cats is the optional integration with the Cats library, providing translations for the types described in
monix.types
.monix.scalaz is the optional integration with the Scalaz library, providing translations for the types described in
monix.types
.