schemas-0.1.1.0: schema guided serialization

Safe HaskellNone
LanguageHaskell2010

Schemas.SOP

Documentation

gRecordFields :: forall a xs. (HasDatatypeInfo a, All FieldEncode xs, Code a ~ '[xs]) => Options -> RecordFields a a Source #

class FieldEncode a Source #

Minimal complete definition

fieldEncoder

Instances
HasSchema a => FieldEncode a Source # 
Instance details

Defined in Schemas.SOP

Methods

fieldEncoder :: Text -> (from -> a) -> RecordFields from a

HasSchema a => FieldEncode (Maybe a) Source # 
Instance details

Defined in Schemas.SOP

Methods

fieldEncoder :: Text -> (from -> Maybe a) -> RecordFields from (Maybe a)