tryMonad

jaskell.Monad$.Instances$.tryMonad$
object tryMonad extends Monad[Try]

Attributes

Graph
Supertypes
trait Monad[Try]
trait Applicative[Try]
trait Functor[Try]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def pure[A](x: A): Try[A]

Extensions

Extensions

extension [A, B](xt: Try[A])
def flatMap(f: A => Try[B]): Try[B]
override def map(f: A => B): Try[B]

The map operation can now be defined in terms of flatMap

The map operation can now be defined in terms of flatMap

Attributes

Definition Classes

Inherited extensions

extension [A, B](fa: F[A => B])
def <*>(fb: F[A]): F[B]

Attributes

Inherited from:
Applicative
def <|>(fb: F[A => B]): F[A => B]

Attributes

Inherited from:
Applicative
extension [A, B, C](fx: F[(A, B) => C])
def liftA2(ax: F[A], bx: F[B]): F[C]

Attributes

Inherited from:
Applicative
extension [A, B](x: F[A])
def *>(bx: F[B]): F[B]

Attributes

Inherited from:
Applicative
def <*(bx: F[B]): F[A]

Attributes

Inherited from:
Applicative
extension [A, B](x: F[A])
def >>(y: F[B]): F[B]

Attributes

Inherited from:
Monad
def >>=(f: A => F[B]): F[B]

Attributes

Inherited from:
Monad
extension [A, B](x: F[A])
def <:>(f: A => B): F[B]

Attributes

Inherited from:
Functor
def fmap(f: A => B): F[B]

Attributes

Inherited from:
Functor