webgear-core-1.3.1: Composable, type-safe library to build HTTP APIs
Safe HaskellNone
LanguageHaskell2010

WebGear.Core.Traits

Description

All the traits supported by WebGear.

Synopsis

Documentation

type StdHandler (h :: Type -> Type -> Type) (m :: Type -> Type) = (Handler h m, Gets h '[Method, Path, PathEnd], Sets h '[Status, Body PlainText String, Body PlainText Text, Body PlainText Text, RequiredResponseHeader "Content-Type" Text]) Source #

Constraints that include a set of common traits for handlers.

The type variables are:

  • h - The handler arrow
  • m - The underlying monad of the handler