EitherCreation

org.atnos.eff.EitherCreation
See theEitherCreation companion object

Attributes

Companion
object
Source
EitherCreation.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EitherEffect
object EitherEffect
object either

Members list

Type members

Types

Attributes

Source
EitherCreation.scala

Value members

Concrete methods

def catchNonFatalThrowable[R, A](a: => A)(implicit member: MemberIn[ThrowableEither, R]): Eff[R, A]

create an Either effect from a value possibly throwing a Throwable

create an Either effect from a value possibly throwing a Throwable

Attributes

Source
EitherCreation.scala
def fromCatchNonFatal[R, E, A](a: => A)(onThrowable: Throwable => E)(implicit member: MemberIn[[_] =>> Either[E, _$8], R]): Eff[R, A]

create an Either effect from a value possibly throwing an exception

create an Either effect from a value possibly throwing an exception

Attributes

Source
EitherCreation.scala
def fromEither[R, E, A](Either: Either[E, A])(implicit member: MemberIn[[_] =>> Either[E, _$2], R]): Eff[R, A]

create an Either effect from a single Either value

create an Either effect from a single Either value

Attributes

Source
EitherCreation.scala
def left[R, E, A](e: E)(implicit member: MemberIn[[_] =>> Either[E, _$4], R]): Eff[R, A]

create a failed value

create a failed value

Attributes

Source
EitherCreation.scala
def optionEither[R, E, A](option: Option[A], e: => E)(implicit member: MemberIn[[_] =>> Either[E, _$1], R]): Eff[R, A]

create an Either effect from a single Option value

create an Either effect from a single Option value

Attributes

Source
EitherCreation.scala
def right[R, E, A](a: A)(implicit member: MemberIn[[_] =>> Either[E, _$6], R]): Eff[R, A]

create a correct value

create a correct value

Attributes

Source
EitherCreation.scala