Simple

kantan.codecs.ResultCompanion.Simple
trait Simple[F] extends Simple[F]

Provides companion object methods for result types that do not have a sane default error type.

If your specialised result type has a sane default (such as TypeError for DecodeResult in kantan.csv), use WithDefault instead.

Attributes

Graph
Supertypes
trait Simple[F]
class Object
trait Matchable
class Any
Known subtypes
trait WithDefault[F]
class WithError[F]
object OpenResult
object ProcessResult
object StringResult
Show all

Members list

Value members

Concrete methods

def failure(f: F): Either[F, Nothing]

Turns the specified value into a failure.

Turns the specified value into a failure.

Attributes

def success[S](s: S): Either[F, S]

Turns the specified value into a success.

Turns the specified value into a success.

Attributes

Inherited methods

def sequence[S, M <: (IterableOnce)](rs: M[Either[F, S]])(implicit bf: BuildFrom[M[Either[F, S]], S, M[S]]): Either[F, M[S]]

Turns a collection of results into a result of a collection.

Turns a collection of results into a result of a collection.

Attributes

Inherited from:
Simple