Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapSpecForest :: ([SpecTree a] -> [SpecTree b]) -> SpecM a r -> SpecM b r

    hspec-core Test.Hspec.Core.Spec

    No documentation available.

  2. pruneForest :: [Tree c a] -> [Tree c a]

    hspec-core Test.Hspec.Core.Spec

    No documentation available.

  3. type DefaultErrorFormatters = '[ErrorFormatters]

    servant-server Servant.Server

    Context that contains default error formatters.

  4. type ErrorFormatter = TypeRep -> Request -> String -> ServerError

    servant-server Servant.Server

    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.

  5. data ErrorFormatters

    servant-server Servant.Server

    A collection of error formatters for different situations. If you need to override one of them, use defaultErrorFormatters with record update syntax.

  6. type NotFoundErrorFormatter = Request -> ServerError

    servant-server Servant.Server

    This formatter does not get neither TypeRep nor error message.

  7. bodyParserErrorFormatter :: ErrorFormatters -> ErrorFormatter

    servant-server Servant.Server

    Format error from parsing the request body.

  8. defaultErrorFormatters :: ErrorFormatters

    servant-server Servant.Server

    Default formatters will just return HTTP 400 status code with error message as response body.

  9. headerParseErrorFormatter :: ErrorFormatters -> ErrorFormatter

    servant-server Servant.Server

    Format error from parsing request headers.

  10. notFoundErrorFormatter :: ErrorFormatters -> NotFoundErrorFormatter

    servant-server Servant.Server

    Format error for not found URLs.

Page 510 of many | Previous | Next