Monad2Instance

izumi.functional.bio.data.Free$.Monad2Instance$
See theMonad2Instance companion class
object Monad2Instance extends Monad2Instance[Nothing]

Attributes

Companion:
class
Graph
Supertypes
class Monad2Instance[Nothing]
trait Monad3[[R, E, A] =>> Free[Nothing, E, A]]
trait Applicative3[[R, E, A] =>> Free[Nothing, E, A]]
trait Functor3[[R, E, A] =>> Free[Nothing, E, A]]
trait RootBifunctor[[R, E, A] =>> Free[Nothing, E, A]]
trait Root
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited types

Attributes

Inherited from:
DivergenceHelper

Attributes

Inherited from:
PredefinedHelper

Value members

Inherited methods

override def *>[R, E, A, B](f: Free[Nothing, E, A], next: => Free[Nothing, E, B]): Free[S, E, B]

execute two operations in order, return result of second operation

execute two operations in order, return result of second operation

Attributes

Definition Classes
Inherited from:
Monad2Instance
override def <*[R, E, A, B](f: Free[Nothing, E, A], next: => Free[Nothing, E, B]): Free[S, E, A]

execute two operations in order, same as *>, but return result of first operation

execute two operations in order, same as *>, but return result of first operation

Attributes

Definition Classes
Inherited from:
Monad2Instance
override def as[R, E, A, B](r: Free[Nothing, E, A])(v: => B): Free[S, E, B]

Attributes

Definition Classes
Inherited from:
Monad2Instance
override def flatMap[R, E, A, B](r: Free[Nothing, E, A])(f: A => Free[Nothing, E, B]): Free[S, E, B]

Attributes

Definition Classes
Inherited from:
Monad2Instance
def flatten[R, E, A](r: Free[Nothing, E, Free[Nothing, E, A]]): F[R, E, A]

Attributes

Inherited from:
Monad3
final def forever[R, E, A](r: Free[Nothing, E, A]): F[R, E, Nothing]

Attributes

Inherited from:
Applicative3
def fromOptionF[R, E, A](fallbackOnNone: => Free[Nothing, E, A], r: Free[Nothing, E, Option[A]]): F[R, E, A]

Extracts the optional value, or executes the fallbackOnNone effect

Extracts the optional value, or executes the fallbackOnNone effect

Attributes

Inherited from:
Monad3
def fromOptionOr[R, E, A](valueOnNone: => A, r: Free[Nothing, E, Option[A]]): F[R, E, A]

Extracts the optional value, or returns the given valueOnNone value

Extracts the optional value, or returns the given valueOnNone value

Attributes

Inherited from:
Functor3
final def ifThenElse[R, E, E1, A](cond: Free[Nothing, E, Boolean])(ifTrue: => Free[Nothing, E1, A], ifFalse: => Free[Nothing, E1, A])(implicit ev: E <:< E1): F[R, E1, A]

Attributes

Inherited from:
Monad3
final def ifThenElse[R, E, A](cond: Boolean)(ifTrue: => Free[Nothing, E, A], ifFalse: => Free[Nothing, E, A]): F[R, E, A]

Attributes

Inherited from:
Applicative3
def iterateUntil[R, E, A](r: Free[Nothing, E, A])(p: A => Boolean): F[R, E, A]

Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.

Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.

Attributes

Inherited from:
Monad3
def iterateUntilF[R, E, A](init: A)(f: A => Free[Nothing, E, A])(p: A => Boolean): F[R, E, A]

Apply an effectful function iteratively until its result satisfies the given predicate and return that result.

Apply an effectful function iteratively until its result satisfies the given predicate and return that result.

Attributes

Inherited from:
Monad3
def iterateWhile[R, E, A](r: Free[Nothing, E, A])(p: A => Boolean): F[R, E, A]

Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.

Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.

Attributes

Inherited from:
Monad3
def iterateWhileF[R, E, A](init: A)(f: A => Free[Nothing, E, A])(p: A => Boolean): F[R, E, A]

Apply an effectful function iteratively until its result fails to satisfy the given predicate and return that result.

Apply an effectful function iteratively until its result fails to satisfy the given predicate and return that result.

Attributes

Inherited from:
Monad3
override def map[R, E, A, B](r: Free[Nothing, E, A])(f: A => B): F[R, E, B]

Attributes

Definition Classes
Inherited from:
Monad3
override def map2[R, E, A, B, C](r1: Free[Nothing, E, A], r2: => Free[Nothing, E, B])(f: (A, B) => C): F[R, E, C]

execute two operations in order, map their results

execute two operations in order, map their results

Attributes

Definition Classes
Inherited from:
Monad3
override def pure[A](a: A): Free[S, Nothing, A]

Attributes

Definition Classes
Inherited from:
Monad2Instance
def sequence[R, E, A, B](l: Iterable[Free[Nothing, E, A]]): F[R, E, List[A]]

Attributes

Inherited from:
Applicative3
def sequence_[R, E](l: Iterable[Free[Nothing, E, Unit]]): F[R, E, Unit]

Attributes

Inherited from:
Applicative3
def tailRecM[R, E, A, B](a: A)(f: A => Free[Nothing, E, Either[A, B]]): F[R, E, B]

Attributes

Inherited from:
Monad3
def tap[R, E, A](r: Free[Nothing, E, A], f: A => Free[Nothing, E, Unit]): F[R, E, A]

Attributes

Inherited from:
Monad3
final def traverse[R, E, A, B](o: Option[A])(f: A => Free[Nothing, E, B]): F[R, E, Option[B]]

Attributes

Inherited from:
Applicative3
def traverse[R, E, A, B](l: Iterable[A])(f: A => Free[Nothing, E, B]): F[R, E, List[B]]

Attributes

Inherited from:
Applicative3
def traverse_[R, E, A](l: Iterable[A])(f: A => Free[Nothing, E, Unit]): F[R, E, Unit]

Attributes

Inherited from:
Applicative3
def unit: F[Any, Nothing, Unit]

Attributes

Inherited from:
Applicative3
final def unless[R, E, E1](cond: Free[Nothing, E, Boolean])(ifFalse: => Free[Nothing, E1, Unit])(implicit ev: E <:< E1): F[R, E1, Unit]

Attributes

Inherited from:
Monad3
final def unless[R, E](cond: Boolean)(ifFalse: => Free[Nothing, E, Unit]): F[R, E, Unit]

Attributes

Inherited from:
Applicative3
override def void[R, E, A](r: Free[Nothing, E, A]): Free[S, E, Unit]

Attributes

Definition Classes
Inherited from:
Monad2Instance
final def when[R, E, E1](cond: Free[Nothing, E, Boolean])(ifTrue: => Free[Nothing, E1, Unit])(implicit ev: E <:< E1): F[R, E1, Unit]

Attributes

Inherited from:
Monad3
final def when[R, E](cond: Boolean)(ifTrue: => Free[Nothing, E, Unit]): F[R, E, Unit]

Attributes

Inherited from:
Applicative3
final def widen[R, E, A, A1](r: Free[Nothing, E, A])(implicit ev: A <:< A1): F[R, E, A1]

Attributes

Inherited from:
Functor3