2016-02-18 17:02:11 +01:00
|
|
|
|
servant – A Type-Level Web DSL
|
|
|
|
|
==============================
|
|
|
|
|
|
|
|
|
|
.. image:: https://raw.githubusercontent.com/haskell-servant/servant/master/servant.png
|
2016-01-18 12:45:25 +01:00
|
|
|
|
|
2018-06-10 00:43:02 +02:00
|
|
|
|
**servant** is a set of Haskell libraries for writing *type-safe* web
|
|
|
|
|
applications but also *deriving* clients (in Haskell and other languages) or
|
|
|
|
|
generating documentation for them, and more.
|
2016-02-18 18:13:43 +01:00
|
|
|
|
|
2018-06-10 00:43:02 +02:00
|
|
|
|
This is achieved by taking as input a description of the web API
|
|
|
|
|
as a Haskell type. Servant is then able to check that your server-side request
|
|
|
|
|
handlers indeed implement your web API faithfully, or to automatically derive
|
|
|
|
|
Haskell functions that can hit a web application that implements this API,
|
|
|
|
|
generate a Swagger description or code for client functions in some other
|
|
|
|
|
languages directly.
|
2016-02-18 18:13:43 +01:00
|
|
|
|
|
2018-06-10 00:43:02 +02:00
|
|
|
|
If you would like to learn more, click the tutorial link below.
|
2016-01-18 12:45:25 +01:00
|
|
|
|
|
|
|
|
|
.. toctree::
|
2016-02-18 17:02:11 +01:00
|
|
|
|
:maxdepth: 2
|
2016-01-18 12:45:25 +01:00
|
|
|
|
|
2016-02-18 17:02:11 +01:00
|
|
|
|
tutorial/index.rst
|
2017-11-25 00:49:25 +01:00
|
|
|
|
cookbook/index.rst
|
2016-04-15 11:18:12 +02:00
|
|
|
|
examples.md
|
2016-02-18 17:02:11 +01:00
|
|
|
|
links.rst
|
2018-06-10 00:43:02 +02:00
|
|
|
|
principles.rst
|