The latest version of schemas is 0.4.0.2-0.

schemas

Version 0.4.0.1 revision 0 uploaded by PepeIborra.

Package meta

Synopsis
schema guided serialization
Description

Schemas is a Haskell library for serializing and deserializing data in JSON. With schemas one does not define parsing and encoding functions, instead one defines a schema that explains the "shape" of the data, and the library provides the encode and decode functions. Shape descriptions are statically typed.

Schemas are related by a subtyping relation, which can be used to implement a simple form of schema versioning. As long as one knows the source and target schemas, and the source is a subtype of the target, source values can be encoded in the target schema.

The library also supports oneOf schemas, which extend the range of versioning changes that can be supported automatically without resorting to explicit versions and conversion functions.

A type class HasSchema is provided for convenience, but none of the core functions in the library rely on type classes.

Schemas can be derived generically using generics-sop, although most of the time it makes more sense to define the schemas explicitly to ensure well-behaved versioning.

Author
Pepe Iborra
Bug reports
https://github.com/pepeiborra/schemas/issues
Category
Data
Copyright
n/a
Homepage
https://github.com/pepeiborra/schemas
Maintainer
pepeiborra@gmail.com
Package URL
n/a
Stability
n/a

Components