| CARVIEW |
servant-server: A family of combinators for defining webservices APIs and serving them
A family of combinators for defining webservices APIs and serving them . You can learn about the basics in the tutorial. . Here is a runnable example, with comments, that defines a dummy API and implements a webserver that serves this API, using this package. . CHANGELOG
[Skip to Readme]
Modules
[Index] [Quick Jump]
- Servant
- Servant.Server
- Experimental
- Servant.Server.Generic
- Servant.Server.Internal
- Servant.Server.Internal.BasicAuth
- Servant.Server.Internal.Context
- Servant.Server.Internal.Delayed
- Servant.Server.Internal.DelayedIO
- Servant.Server.Internal.ErrorFormatter
- Servant.Server.Internal.Handler
- Servant.Server.Internal.ResponseRender
- Servant.Server.Internal.RouteResult
- Servant.Server.Internal.Router
- Servant.Server.Internal.RoutingApplication
- Servant.Server.Internal.ServerError
- Servant.Server.StaticFiles
- Servant.Server.UVerb
- Utils
- Servant.Server
Downloads
- servant-server-0.20.3.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
- AlpMestanogullari, DavidJohnson, GaelDeest, SoenkeHahn, ChristianMarie, phadej, MatthiasFischmann, jkarni, maksbotan, hecate, arianvp, fisx, janus
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.3.1, 0.4.4, 0.4.4.1, 0.4.4.2, 0.4.4.3, 0.4.4.4, 0.4.4.5, 0.4.4.6, 0.4.4.7, 0.5, 0.6, 0.6.1, 0.7, 0.7.1, 0.8, 0.8.1, 0.9, 0.9.0.1, 0.9.1, 0.9.1.1, 0.10, 0.11, 0.11.0.1, 0.12, 0.13, 0.13.0.1, 0.14, 0.14.1, 0.15, 0.16, 0.16.1, 0.16.2, 0.17, 0.18, 0.18.1, 0.18.2, 0.18.3, 0.19, 0.19.1, 0.19.2, 0.20, 0.20.2, 0.20.3.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=1.4.1.0 && <3), base (>=4.16.4.0 && <4.22), base-compat, base64-bytestring (>=1.0.0.1 && <1.3), bytestring (>=0.11 && <0.13), constraints (>=0.2 && <0.15), containers (>=0.6.5.1 && <0.9), exceptions (>=0.10.0 && <0.11), filepath (>=1.4.1.1 && <1.6), http-api-data (>=0.4.1 && <0.7), http-media (>=0.7.1.3 && <0.9), http-types (>=0.12.2 && <0.13), monad-control (>=1.0.2.3 && <1.1), mtl (>=2.2.2 && <2.3 || >=2.3.1 && <2.4), network (>=2.8 && <3.3), resourcet (>=1.2.2 && <1.4), servant (>=0.20.3 && <0.21), servant-server, sop-core (>=0.4.0.0 && <0.6), tagged (>=0.8.6 && <0.9), text (>=1.2.3.0 && <2.2), transformers (>=0.5.2.0 && <0.7), transformers-base (>=0.4.5.2 && <0.5), wai (>=3.2.2.1 && <3.3), wai-app-static (>=3.1.6.2 && <3.2), warp (>=3.2.25 && <3.5), word8 (>=0.1.3 && <0.2) [details] |
| Tested with | ghc ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.4 || ==9.10.1 || ==9.12.1 |
| License | BSD-3-Clause |
| Copyright | 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors |
| Author | Servant Contributors |
| Maintainer | haskell-servant-maintainers@googlegroups.com |
| Uploaded | by hecate at 2025-06-04T10:14:31Z |
| Revised | Revision 1 made by hecate at 2025-06-21T09:44:00Z |
| Category | Servant, Web |
| Home page | https://docs.servant.dev/ |
| Bug tracker | https://github.com/haskell-servant/servant/issues |
| Source repo | head: git clone https://github.com/haskell-servant/servant.git |
| Distributions | Arch:0.20.3.0, Debian:0.16.2, Fedora:0.20.2, LTSHaskell:0.20.3.0, NixOS:0.20.3.0, Stackage:0.20.3.0, openSUSE:0.20.3.0 |
| Reverse Dependencies | 150 direct, 195 indirect [details] |
| Executables | greet |
| Downloads | 76730 total (202 in the last 30 days) |
| Rating | 2.75 (votes: 11) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2025-06-04 [all 1 reports] |
Readme for servant-server-0.20.3.0
[back to package description]servant-server

This library lets you implement an HTTP server with handlers for each endpoint of a servant API, handling most of the boilerplate for you.
Getting started
We've written a tutorial guide that introduces the core types and features of servant. After this article, you should be able to write your first servant webservices, learning the rest from the haddocks' examples.