Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
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
type JsonSchema = Schema JsonType Source #
Simple JSON schema type
type JsonField o a = Field JsonSchema o a Source #
Simple JSON field type