HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduleserdoc-core-0.3.2.0Haskell2010

Data.SerDoc.TH

  • 3 values
valuederiveSerializable :: Name -> [Name] -> Name -> DecsQ
#

Derive a Serializable instance for the given codec and type. Currently only supports record types. The generated instance will serialize record fields in the order they are declared in the source code, without any additional separators, padding, or envelope around or between them, making it compatible with deriveHasInfo. (See also deriveSerDoc.)

valuederiveHasInfo :: Name -> [Name] -> Name -> DecsQ
#

Derive a HasInfo instance for the given codec and type. Currently only supports record types. A matching Serializable instance must serialize record fields in the order they are declared in the source code, without any additional separators, padding, or envelope around or between them. If your serializer does not meet these requirements, you must write a custom HasInfo instance instead.