MIT licensed by Rick Owens
Maintained by [email protected]
This version can be pinned in stack with:json-spec-elm-servant-0.6.0.0@sha256:0c63f74f0ca4df8a70fccd20d534bb6a42edee2530edaf9716759b094d6616fc,2842

Module documentation for 0.6.0.0

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.

Changes

Changelog

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.