Package

io.circe

generic

Permalink

package generic

Visibility
  1. Public
  2. All

Type Members

  1. trait BaseInstances extends AnyRef

    Permalink
  2. trait Complement[L <: HList, A <: HList] extends DepFn1[L]

    Permalink

    Supports removal and insertion of an HList of elements (possibly unlabeled) into an HList.

  3. trait GenericInstances extends AnyRef

    Permalink
  4. trait HListInstances extends AnyRef

    Permalink
  5. trait IncompleteInstances extends AnyRef

    Permalink
  6. trait Insert[L, E] extends DepFn1[L] with Serializable

    Permalink

    Supports removal and insertion (possibly of unlabeled elements) into an HList.

  7. trait LabelledInstances extends AnyRef

    Permalink
  8. trait LowPriorityInsert extends AnyRef

    Permalink
  9. trait ProductDecoder[L <: HList] extends AnyRef

    Permalink
  10. trait ProductEncoder[L <: HList] extends AnyRef

    Permalink
  11. trait TupleInstances extends AnyRef

    Permalink

Value Members

  1. object Complement

    Permalink
  2. object Insert extends LowPriorityInsert with Serializable

    Permalink
  3. object ProductDecoder

    Permalink
  4. object ProductEncoder

    Permalink
  5. object auto extends BaseInstances with IncompleteInstances with TupleInstances with LabelledInstances with GenericInstances with HListInstances

    Permalink

    Fully automatic codec derivation.

    Fully automatic codec derivation.

    Importing the contents of this object provides io.circe.Decoder and io.circe.Encoder instances for tuples, case classes (if all members have instances), "incomplete" case classes, sealed trait hierarchies, tuples, etc.

  6. object semiauto extends BaseInstances with LabelledInstances with HListInstances

    Permalink

    Semi-automatic codec derivation.

    Semi-automatic codec derivation.

    This object provides helpers for creating io.circe.Decoder and io.circe.Encoder instances for tuples, case classes, "incomplete" case classes, sealed trait hierarchies, etc.

    Typical usage will look like the following:

    import io.circe._, io.circe.generic.semiauto._, io.circe.generic.semiauto.tuple._
    
    case class Foo(i: Int, p: (String, Double))
    
    object Foo {
      implicit val decodeFoo: Decoder[Foo] = deriveFor[Foo].decoder
      implicit val encodeFoo: Encoder[Foo] = deriveFor[Foo].encoder
    }

Ungrouped