HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Typeclasses

classclass Codec codec where

Abstracts over an individual serializer / deserializer, a.k.a., a "codec". A codec typically provides a serializer, deserializer, and metadata for each serializable type; however, for various reasons, the Codec typeclass itself only captures the associated types that are involved in serializing and deserializing.

Associated types

classclass Codec codec => Serializable codec a where

Serialization and deserialization API for a Codec.

Methods

Instances1Serializable

Helpers For Writing Instances

newtypenewtype ViaEnum a

Newtype wrapper for deriving / defining HasInfo and Serializable instances for enum types.

Constructors

Instances3HasInfo, Serializable, Show

Helpers For Dealing With FieldInfo And 'Field Size'