The servant-swagger package

[ Tags: bsd3, library, servant, swagger, web ] [ Propose Tags ]

Please see

[Skip to Readme]


Versions,, 0.1, 0.1.1, 0.1.2, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.1, 1.1.1, 1.1.2,, 1.1.3,, 1.1.4
Change log
Dependencies aeson (>= && <1.3), base (>= && <4.11), bytestring (>= && <0.11), hspec, http-media (>=0.6.3 && <0.8), insert-ordered-containers (>= && <0.3), lens (>= && <4.16), QuickCheck, servant (>=0.5 && <0.13), swagger2 (>=2.1 && <2.3), text (>= && <1.3), unordered-containers (>= && <0.3) [details]
License BSD3
Copyright (c) 2015-2016, Servant contributors
Author David Johnson, Nickolay Kudasov
Category Web, Servant, Swagger
Home page
Bug tracker
Source repository head: git clone
Uploaded Wed Nov 8 08:40:53 UTC 2017 by phadej
Distributions Arch:1.1.4, LTSHaskell:1.1.4, NixOS:1.1.4, Stackage:1.1.4, Tumbleweed:1.1.2
Downloads 5233 total (308 in the last 30 days)
Rating 2.5 (votes: 5) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-11-08 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for servant-swagger-1.1.4

[back to package description]


Build Status Hackage Stackage LTS Stackage Nightly

Swagger 2.0 conforming json for servant APIs.

servant-swagger robot


Swaggerâ„¢ is a project used to describe and document RESTful APIs. Unlike Servant it is language-agnostic and thus is quite popular among developers in different languages. It also exists for a longer time and has more tools to work with.

This package provides means to generate Swagger specification for a Servant API and also to partially test whether API conforms with its specification.

Generated Swagger specification then can be used for many things such as


Please refer to haddock documentation.

Some examples can be found in example/ directory.

Try it out

All generated swagger specifications can be interactively viewed on Swagger Editor.

Ready-to-use specification can be served as JSON and interactive API documentation can be displayed using Swagger UI.

Many Swagger tools, including server and client code generation for many languages, can be found on Swagger's Tools and Integrations page.


We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.