webgear-core-1.2.0: Composable, type-safe library to build HTTP APIs
Safe HaskellSafe-Inferred
LanguageHaskell2010

WebGear.Core.Traits

Description

All the traits supported by WebGear.

Synopsis

Documentation

type StdHandler h m = (Handler h m, Gets h [Method, Path, PathEnd] Request, Sets h '[Status, Body PlainText String, Body PlainText Text, Body PlainText Text] Response) 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