Import this if you wish to use flatMap
Construct a failure validation value but specify only the success
type param
Construct a failure validation value but specify only the success
type param
val x = Validation.f[String](42) x: Validation[Int, String]
Construct a failure validation value.
Wrap a value in a NonEmptyList
and construct a failure validation out of it.
Construct a Validation
from an Either
.
Spin in tail-position on the failure value of the given validation.
Spin in tail-position on the failure value of the given validation.
Spin in tail-position on the success value of the given validation.
Spin in tail-position on the success value of the given validation.
Construct a success validation value but specify only the failure
type param
Construct a success validation value but specify only the failure
type param
val x = Validation.s[String](42) x: Validation[String, Int]
Construct a success validation value.
(Since version 7.3.0) Throwable is not referentially transparent, use \/.attempt
(Since version 7.3.0) Throwable is not referentially transparent, use \/.attempt