Packages

  • package root
    Definition Classes
    root
  • package kantan
    Definition Classes
    root
  • package codecs
    Definition Classes
    kantan
  • package export

    Provides a simple mechanism to insert derived type class instances in the implicit resolution mechanism.

    Provides a simple mechanism to insert derived type class instances in the implicit resolution mechanism.

    By default, when imported, such instances have the highest possible priority, which is typically problematic with shapeless instance derivation: bespoke instances for Option or Either, for example, find themselves shadowed by the generically derived ones.

    If such instances are of type kantan.codecs.export.DerivedDecoder / kantan.codecs.export.DerivedEncoder rather than Decoder / Encoder, however, they'll find themselves with a lower precedence and only be used if no other, more specific instance is found.

    Definition Classes
    codecs
  • DerivedDecoder
  • DerivedEncoder
  • Exported
o

kantan.codecs.export

DerivedDecoder

object DerivedDecoder

Provides construction methods for kantan.codecs.export.DerivedDecoder.

Source
DerivedDecoder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DerivedDecoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def from[E, D, F, T](f: (E) => Either[F, D]): DerivedDecoder[E, D, F, T]