object DecodeResult
Helper objects to make creating DecodeResults easier.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DecodeResult
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
apply[F[_], A](fa: F[Either[DecodeFailure, A]]): DecodeResult[F, A]
Create a DecodeResult directly from the effectful Either.
-
def
fail[F[_], A](implicit F: Applicative[F]): DecodeResult[F, A]
Return a failure.
-
def
failure[F[_], A](e: DecodeFailure)(implicit F: Applicative[F]): DecodeResult[F, A]
Lift an plain DecodeFailure to a DecodeResult.
-
def
failure[F[_], A](e: F[DecodeFailure])(implicit F: Functor[F]): DecodeResult[F, A]
Lift an effectful DecodeFailure to a DecodeResult.
-
def
success[F[_], A](a: A)(implicit F: Applicative[F]): DecodeResult[F, A]
Lift a pure A to a DecodeResult.
-
def
success[F[_], A](a: F[A])(implicit F: Functor[F]): DecodeResult[F, A]
Lift an effectful A to a DecodeResult.