EitherSyntax
Syntax for treating scalaz.\/
as signifiers of success or failure in a computation.
The simplest usage is something like: myEither ~>? "Do I have the right?"
. The 'value'
and log tree of the returned treelog.LogTreeSyntax.DescribedComputation will indicate success or failure
depending on the value of myEither
.
Value members
Concrete methods
Use different descriptions depending on whether either
is a \/-
or a -\/
.
Use different descriptions depending on whether either
is a \/-
or a -\/
.
Use the same description regardless of whether either
is a \/-
or a -\/
.
Equivalent to: ~>?((error: String) => s"$description - $error", description)
Use the same description regardless of whether either
is a \/-
or a -\/
.
Equivalent to: ~>?((error: String) => s"$description - $error", description)
Use the given description if either
is a \/-
. If either
is
-\/(message)
, use message
as the description.
Use the given description if either
is a \/-
. If either
is
-\/(message)
, use message
as the description.