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.)
Moduleserdoc-core-0.3.2.0Haskell2010
Data.SerDoc.TH
- 3 values
- Packageserdoc-core-0.3.2.0
- Exports3
- LanguageHaskell2010
- LicenceApache-2.0
- SourceTH.hs
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.
Derive both a HasInfo instance and a matching Serializable instance, combining deriveHasInfo and deriveSerializable.