webgear-core-1.0.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 m req res = (Handler h m, Gets h [Method, Path, PathEnd] Request, Gets h req Request, Sets h (Status ': res) Response) Source #

Constraints that include all common traits.

The type variables are:

  • h - The handler arrow
  • m - The underlying monad of the handler
  • req - List of traits the handler Gets from the request
  • res - List of traits the handler Sets on the response