ForEither

object ForEither

The default Encoder for Either is not automatically in scope, because there is no clear "standard" way of encoding instances of Either.

class Object
trait Matchable
class Any

Implicits

Implicits

implicit def default[A : Encoder, B : Encoder]: Encoder[Either[A, B]]
implicit def raw[A : Encoder, B : Encoder]: Encoder[Either[A, B]]

An Encoder that unpacks the either and writes its content without any wrapping or type information.

An Encoder that unpacks the either and writes its content without any wrapping or type information.