servant/servant-server
Maxim Koltsov 57f0b0b390
Make error messages from combinators configurable
Currently there is no way for Servant users to customize formatting of
error messages that arise when combinators can't parse URL or request
body, apart from reimplementing those combinators for themselves or
using middlewares.

This commit adds a possibility to specify custom error formatters
through Context.

Fixes #685
2020-07-17 17:10:31 +03:00
..
example Fix typos and grammar (#1304) 2020-06-06 00:43:51 -04:00
src Make error messages from combinators configurable 2020-07-17 17:10:31 +03:00
test Make error messages from combinators configurable 2020-07-17 17:10:31 +03:00
CHANGELOG.md Fix typos and grammar (#1304) 2020-06-06 00:43:51 -04:00
LICENSE Changelog and cabal file edits 2018-11-13 09:58:42 +02:00
README.md point to www.servant.dev (website) and docs.servant.dev (self-explanatory) 2019-03-02 10:08:03 +01:00
servant-server.cabal Make error messages from combinators configurable 2020-07-17 17:10:31 +03:00
Setup.hs Change build-type: Simple; run doctests on CI via haskell-ci 2020-01-10 01:07:31 +02:00

servant-server

servant

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.