stdTryInstances

leopards.try$package.stdTryInstances
object stdTryInstances extends ApplicativeError[Try, Throwable]

Attributes

Source
try.scala
Graph
Supertypes
trait ApplicativeError[Try, Throwable]
trait Applicative[Try]
trait Apply[Try]
trait Semigroupal[Try]
trait Functor[Try]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def ap[A, B](ff: Try[A => B], fa: Try[A]): Try[B]

Attributes

Source
try.scala
override def pure[A](a: A): Try[A]

Attributes

Definition Classes
Source
try.scala
override def raiseError[A](e: Throwable): Try[A]

Attributes

Definition Classes
Source
try.scala

Inherited methods

def lift[A, B](f: A => B): F[A] => F[B]

Attributes

Inherited from:
Functor
Source
Functor.scala
def unit: F[Unit]

Attributes

Inherited from:
Applicative
Source
Applicative.scala

Extensions

Extensions

extension [A](fa: Try[A])
override def handleError(f: Throwable => A): Try[A]

Attributes

Definition Classes
Source
try.scala
override def map[B](f: A => B): Try[B]

Attributes

Definition Classes
Source
try.scala

Inherited extensions

extension [A](fa: Try[A])
def as[B](b: B): F[B]

Attributes

Inherited from:
Functor
Source
Functor.scala
def void: F[Unit]

Attributes

Inherited from:
Functor
Source
Functor.scala
extension [A](fa: Try[A])
def *>[B](fb: Try[B]): F[B]

Attributes

Inherited from:
Apply
Source
Apply.scala
def <*[B](fb: Try[B]): F[A]

Attributes

Inherited from:
Apply
Source
Apply.scala
def map2[B, Z](fb: Try[B])(f: (A, B) => Z): F[Z]

Attributes

Inherited from:
Apply
Source
Apply.scala
override def product[B](fb: Try[B]): F[(A, B)]

Attributes

Definition Classes
Inherited from:
Apply
Source
Apply.scala
extension [A, B](ff: Try[A => B])
inline def <*>(fa: Try[A]): F[B]

Attributes

Inherited from:
Apply
Source
Apply.scala
extension [T <: NonEmptyTuple](tuple: T)(using toMap: IsMappedBy[Try][T])
inline def mapN[B](f: InverseMap[T, Try] => B): F[B]

Attributes

Inherited from:
Apply
Source
Apply.scala
inline def tupled: F[InverseMap[T, F]]

Attributes

Inherited from:
Apply
Source
Apply.scala