webgear-swagger-1.2.0: Composable, type-safe library to build HTTP API servers
Safe HaskellSafe-Inferred
LanguageHaskell2010

WebGear.Swagger.Trait.Path

Description

Swagger implementation of path traits.

Orphan instances

Get (SwaggerHandler m :: Type -> Type -> Type) Path Request Source # 
Instance details

Get (SwaggerHandler m :: Type -> Type -> Type) PathEnd Request Source # 
Instance details

KnownSymbol tag => Get (SwaggerHandler m :: Type -> Type -> Type) (PathVar tag val) Request Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). Prerequisite (PathVar tag val) ts Request => PathVar tag val -> SwaggerHandler m (With Request ts) (Either (Absence (PathVar tag val) Request) (Attribute (PathVar tag val) Request)) #