MIT licensed by Rick Owens
This version can be pinned in stack with:json-spec-elm-servant-2.0.0.0@sha256:bae0021078dbd41034ed1c33c6c6cc85a89008a3c9cce914d4b89f886995506e,2842
Module documentation for 2.0.0.0
Depends on 15 packages
(full list with versions):
base,
bound,
containers,
directory,
elm-syntax,
filepath,
http-types,
json-spec,
json-spec-elm,
mtl,
prettyprinter,
process,
servant,
text,
unordered-containers json-spec-elm-servant
Generate Elm encoders, decoders, and API requests for an Servant API,
where the shape of the data going over the API is described using
json-spec.
See the /test/test.hs and /test/Api.hs for an example.
Changelog
2.0.0.0
- Require
json-spec >= 2.0 and adapt to its 2.0 API ('Module /
JsonModule, SpecJson, TupleDecoding, and TupleEncoding).
- The major (epoch) version is bumped to 2.0 to indicate compatibility
with the
json-spec 2.0 major/epoch version.
0.6.0.1
- Relaxed the upper bound on
aeson to allow version 2.3.
0.6.0.0
- Require
json-spec >= 1.4 and json-spec-elm >= 0.6, which provide
JsonDict support (Elm Dict String a) via json-spec-elm.
- The test API now exercises
JsonDict in DashboardData.
0.5.1.0
- Improved Elm generator output.
- Relaxed dependency bounds for
containers and time.
0.5.0.0
- Added support for GHC 9.14.
- This release is expected to be compatible with the
0.4.4.x series in
most practical cases.
- The major version bump is required because exposed type class instances
and their constraints changed, which is a technical API change.