HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleservant-server-0.20.3.0Haskell2010

Servant.Server.Internal.ErrorFormatter

  • 5 types
  • 2 values
datadata ErrorFormatters
#

A collection of error formatters for different situations.

If you need to override one of them, use defaultErrorFormatters with record update syntax.

Constructors

A custom formatter for errors produced by parsing combinators like ReqBody or Capture.

A TypeRep argument described the concrete combinator that raised the error, allowing formatter to customize the message for different combinators.

A full Request is also passed so that the formatter can react to Accept header, for example.