Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.JSON.Schema.Generic
Description
Generic derivation of schemas. The schemas generated match the JSON generated by type 'generic-aeson' package. See that package for documentation on the format and examples of it.
Documentation
class GJSONSchema f #
Minimal complete definition
gSchema'
Instances
GJSONSchema U1 # | |
GJSONSchema (K1 i String) # | |
JSONSchema c => GJSONSchema (K1 i c) # | |
(GJSONSchema f, GJSONSchema g) => GJSONSchema ((:+:) f g) # | |
(GJSONSchema f, GJSONSchema g) => GJSONSchema ((:*:) f g) # | |
GJSONSchema f => GJSONSchema (M1 D c f) # | |
(Constructor Meta c, GJSONSchema f) => GJSONSchema (M1 C c f) # | |
(Selector Meta c, GJSONSchema f) => GJSONSchema (M1 S c f) # | |
Selector Meta c => GJSONSchema (M1 S c (K1 i (Maybe String))) # | |
(Selector Meta c, JSONSchema a) => GJSONSchema (M1 S c (K1 i (Maybe a))) # | |