json-spec-elm-servant: Generated elm code for servant APIs.

[ elm, json, library, mit, servant, web ] [ Propose Tags ]

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 `testtest.hs` and `testApi.hs` for an example.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Flags

Automatic Flags
NameDescriptionDefault
compile-elm

Set this flag to run the Elm compilation tests, which requires Elm to be installed on the system.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.1.0, 0.3.1.1, 0.3.1.2, 0.3.2.0, 0.3.2.1, 0.4.0.0, 0.4.0.1, 0.4.0.2, 0.4.1.0
Dependencies base (>=4.19.0.0 && <4.20), bound (>=2.0.7 && <2.1), containers (>=0.6.8 && <0.7), directory (>=1.3.8.1 && <1.4), elm-syntax (>=0.3.3.0 && <0.4), filepath (>=1.4.300.2 && <1.5), http-types (>=0.12.3 && <0.13), json-spec (>=0.3.0.0 && <0.6), json-spec-elm (>=0.4.0.0 && <0.5), mtl (>=2.3.1 && <2.4), prettyprinter (>=1.7.1 && <1.8), process (>=1.6.18.0 && <1.7), servant (>=0.20.1 && <0.21), text (>=2.1 && <2.2), unordered-containers (>=0.2.19.1 && <0.3) [details]
License MIT
Copyright 2022 Rick Owens
Author Rick Owens
Maintainer rick@owensmurray.com
Category JSON, Elm, Servant, Web
Home page https://github.com/owensmurray/json-spec-elm-servant
Uploaded by rickowens at 2024-06-05T05:03:28Z
Distributions Stackage:0.4.0.2
Downloads 294 total (76 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for json-spec-elm-servant-0.4.1.0

[back to package description]

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.