Maintainer | Brandon Chinn <brandon@leapyear.io> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Utilities for showing a schema. Meant to be imported qualified.
Synopsis
- data SchemaType
- showSchemaType :: SchemaType -> String
- data SchemaKey
Documentation
data SchemaType Source #
SchemaType
, but for printing.
SchemaBool | |
SchemaInt | |
SchemaDouble | |
SchemaText | |
SchemaCustom String | |
SchemaMaybe SchemaType | |
SchemaTry SchemaType | |
SchemaList SchemaType | |
SchemaObject [(SchemaKey, SchemaType)] | |
SchemaUnion [SchemaType] |
Instances
Show SchemaType Source # | |
Defined in Data.Aeson.Schema.Show showsPrec :: Int -> SchemaType -> ShowS # show :: SchemaType -> String # showList :: [SchemaType] -> ShowS # |
showSchemaType :: SchemaType -> String Source #
Pretty show the given SchemaType.
Re-exports
A key in a JSON object schema.
NormalKey String | |
PhantomKey String | A key that doesn't actually exist in the object, but whose content should be parsed from the current object. |