| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Schema.JSON.Internal.Types
Synopsis
- data JsonPrimitive (f :: * -> *) (a :: *) where
- JsonNumber :: JsonPrimitive f Scientific
- JsonText :: JsonPrimitive f Text
- JsonBool :: JsonPrimitive f Bool
- JsonArray :: f a -> JsonPrimitive f (Vector a)
- JsonMap :: f a -> JsonPrimitive f (HashMap Text a)
- type JsonType = HMutu JsonPrimitive Schema
- type JsonSchema = Schema JsonType
- type JsonField o a = Field JsonSchema o a
Documentation
data JsonPrimitive (f :: * -> *) (a :: *) where #
Constructors
| JsonNumber :: JsonPrimitive f Scientific | |
| JsonText :: JsonPrimitive f Text | |
| JsonBool :: JsonPrimitive f Bool | |
| JsonArray :: f a -> JsonPrimitive f (Vector a) | |
| JsonMap :: f a -> JsonPrimitive f (HashMap Text a) |
Instances
| ToSchemaDoc JsonType # | |
Defined in Data.Schema.JSON.Internal.Types Methods | |
| ToSchemaLayout JsonType # | |
Defined in Data.Schema.JSON.Internal.Types Methods | |
| ToGen JsonType # | |
| ToJsonDeserializer JsonType # | |
Defined in Data.Schema.JSON.Internal.Types Methods | |
| ToJsonSerializer JsonType # | |
Defined in Data.Schema.JSON.Internal.Types Methods | |
type JsonType = HMutu JsonPrimitive Schema #
type JsonSchema = Schema JsonType #
Simple JSON schema type
type JsonField o a = Field JsonSchema o a #
Simple JSON field type