smithy4s.capability.EncoderK
See theEncoderK companion object
trait EncoderK[F[_], Result] extends Contravariant[F]
A typeclass abstracting over the notion of encoder. It offers way to go from an encoder type to a function, and vice-versa.
This abstraction is particularly useful when encoding unions : as we need to pre-compile codecs for each union member, and dispatch union instances to a specific codec.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article