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

[ elm, json, library, mit, servant, web ] [ Propose Tags ] [ Report a vulnerability ]

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, 0.4.1.1, 0.4.1.2, 0.4.2.0, 0.4.2.1, 0.4.2.2
Dependencies base (>=4.19.0.0 && <4.20), bound (>=2.0.7 && <2.1), containers (>=0.6.8 && <0.7), elm-syntax (>=0.3.3.0 && <0.4), 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), servant (>=0.20.1 && <0.21), text (>=2.1 && <2.2) [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-05-24T23:28:18Z
Distributions Stackage:0.4.2.2
Downloads 588 total (48 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.0.2

[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.