monadOutcome

libretto.testing.TestKit.monadOutcome
object monadOutcome extends Monad[Outcome]

Attributes

Graph
Supertypes
trait Monad[Outcome]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def flatMap[A, B](fa: Outcome[A])(f: A => Outcome[B]): Outcome[B]

Attributes

Definition Classes
Monad
override def pure[A](a: A): Outcome[A]

Attributes

Definition Classes
Monad

Inherited methods

def map[A, B](fa: Outcome[A], f: A => B): Outcome[B]

Attributes

Inherited from:
Monad

Inherited fields

lazy val applicative: Applicative[Outcome]

An Applicative derived from this Monad instance.

An Applicative derived from this Monad instance.

Note that it is intentional that

  • Monad is not made to extend Applicative.
  • The Applicative derived from this Monad (i.e. this field) is not given. The reason is that we often want to use a different Applicative instance by default.

Attributes

Inherited from:
Monad

Extensions

Inherited extensions

extension [A](ffa: Outcome[Outcome[A]])
def flatten: Outcome[A]

Attributes

Inherited from:
Monad