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 Source #
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 Source # | |
Defined in Data.Schema.JSON.Internal.Types Methods | |
ToSchemaLayout JsonType Source # | |
Defined in Data.Schema.JSON.Internal.Types Methods | |
ToGen JsonType Source # | |
ToJsonDeserializer JsonType Source # | |
Defined in Data.Schema.JSON.Internal.Types Methods | |
ToJsonSerializer JsonType Source # | |
Defined in Data.Schema.JSON.Internal.Types Methods |
type JsonSchema = Schema JsonType Source #
Simple JSON schema type
type JsonField o a = Field JsonSchema o a Source #
Simple JSON field type