webgear-server-1.4.0: Composable, type-safe library to build HTTP API servers
Safe HaskellNone
LanguageHaskell2010

WebGear.Server.Trait.Path

Description

Server implementation of the path traits.

Orphan instances

Monad m => Get (ServerHandler m) Path Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). Prerequisite Path ts => Path -> ServerHandler m (With Request ts) (Either (Absence Path) (Attribute Path Request)) #

Monad m => Get (ServerHandler m) PathEnd Source # 
Instance details

(Monad m, FromHttpApiData val) => Get (ServerHandler m) (PathVar tag val) Source # 
Instance details

Methods

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