servant-server: A family of combinators for defining webservices APIs and serving them

[ bsd3, library, program, servant, web ] [ Propose Tags ]

A family of combinators for defining webservices APIs and serving them

You can learn about the basics in the getting started guide.

Here's a runnable example, with comments, that defines a dummy API and implements a webserver that serves this API, using this package.

[Skip to Readme]
Versions [faq] 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.4,,,,,,,, 0.5, 0.6, 0.6.1, 0.7, 0.7.1, 0.8, 0.8.1, 0.9,, 0.9.1,, 0.10, 0.11,, 0.12, 0.13,, 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
Change log
Dependencies aeson, attoparsec, base (>=4.7 && <5), bytestring, either (>=4.3 && <5), http-types, network-uri (>=2.6), safe, servant (==0.2.*), servant-server, split, string-conversions, system-filepath, text, transformers, wai, wai-app-static (<3.1), warp [details]
License BSD-3-Clause
Copyright 2014 Zalora South East Asia Pte Ltd
Author Alp Mestanogullari, Sönke Hahn, Julian K. Arni
Revised Revision 2 made by phadej at 2017-12-09T23:34:03Z
Category Web
Home page
Bug tracker
Source repo head: git clone
Uploaded by jkarni at 2015-01-04T15:41:27Z
Distributions Arch:0.18.1, Debian:0.14.1, Fedora:0.16.2, LTSHaskell:0.15, NixOS:0.18.2, Stackage:0.16
Executables greet
Downloads 45363 total (479 in the last 30 days)
Rating 2.75 (votes: 7) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2015-01-04 [all 4 reports]




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

For package maintainers and hackage trustees

Readme for servant-server-0.2.3

[back to package description]


Build Status


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 Getting Started 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.

Repositories and Haddocks