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

WebGear.Server.Trait.QueryParam

Description

Server implementation of the QueryParam trait.

Orphan instances

(Monad m, KnownSymbol name, FromHttpApiData val) => Get (ServerHandler m) (QueryParam 'Optional 'Lenient name val) Request Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). QueryParam 'Optional 'Lenient name val -> ServerHandler m (Linked ts Request) (Either (Absence (QueryParam 'Optional 'Lenient name val) Request) (Attribute (QueryParam 'Optional 'Lenient name val) Request)) #

(Monad m, KnownSymbol name, FromHttpApiData val) => Get (ServerHandler m) (QueryParam 'Optional 'Strict name val) Request Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). QueryParam 'Optional 'Strict name val -> ServerHandler m (Linked ts Request) (Either (Absence (QueryParam 'Optional 'Strict name val) Request) (Attribute (QueryParam 'Optional 'Strict name val) Request)) #

(Monad m, KnownSymbol name, FromHttpApiData val) => Get (ServerHandler m) (QueryParam 'Required 'Lenient name val) Request Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). QueryParam 'Required 'Lenient name val -> ServerHandler m (Linked ts Request) (Either (Absence (QueryParam 'Required 'Lenient name val) Request) (Attribute (QueryParam 'Required 'Lenient name val) Request)) #

(Monad m, KnownSymbol name, FromHttpApiData val) => Get (ServerHandler m) (QueryParam 'Required 'Strict name val) Request Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). QueryParam 'Required 'Strict name val -> ServerHandler m (Linked ts Request) (Either (Absence (QueryParam 'Required 'Strict name val) Request) (Attribute (QueryParam 'Required 'Strict name val) Request)) #