Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
gSchema :: forall a. (HasDatatypeInfo a, All2 FieldEncode (Code a)) => Options -> TypedSchema a Source #
gRecordFields :: forall a xs. (HasDatatypeInfo a, All FieldEncode xs, Code a ~ '[xs]) => Options -> RecordFields a a Source #
Options | |
|
defOptions :: Options Source #
class FieldEncode a Source #
fieldEncoder
Instances
HasSchema a => FieldEncode a Source # | |
Defined in Schemas.SOP fieldEncoder :: Text -> (from -> a) -> RecordFields from a | |
HasSchema a => FieldEncode (Maybe a) Source # | |
Defined in Schemas.SOP fieldEncoder :: Text -> (from -> Maybe a) -> RecordFields from (Maybe a) |