Type class for types that can be serialized to Output (format-agnostic "output stream") and deserialized
from Input (format-agnostic "input stream"). GenCodec is supposed to capture generic structure of serialized
objects, without being bound to particular format like JSON. The actual format is determined by implementation
of Input and Output.
There are convenient macros for automatic derivation of GenCodec instances (materialize and materializeRecursively).
However, GenCodec instances still need to be explicitly declared and won't be derived "automagically".
If you want fully automatic derivation, use GenCodec.Auto.
Type class for types that can be serialized to
Output(format-agnostic "output stream") and deserialized fromInput(format-agnostic "input stream").GenCodecis supposed to capture generic structure of serialized objects, without being bound to particular format like JSON. The actual format is determined by implementation ofInputandOutput.There are convenient macros for automatic derivation of
GenCodecinstances (materializeandmaterializeRecursively). However,GenCodecinstances still need to be explicitly declared and won't be derived "automagically". If you want fully automatic derivation, useGenCodec.Auto.