Copyright | (c) Microsoft |
---|---|
License | MIT |
Maintainer | adamsap@microsoft.com |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
- encodeSchemaDef :: Type -> ByteString
- makeSchemaDef :: Type -> SchemaDef
Runtime schema (aka SchemaDef) support
encodeSchemaDef :: Type -> ByteString Source #
Returns an instance of SchemaDef
for the specified type. The SchemaDef is encoded using the Bond Simple JSON
protocol and returned as a lazy ByteString
.
makeSchemaDef :: Type -> SchemaDef Source #