minion-0.1.0.0: A Haskell introspectable web router
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Minion.Request.Query

Synopsis

Documentation

newtype QueryForm a Source #

Constructors

QueryForm a 

Instances

Instances details
IsRequest (QueryForm a) Source # 
Instance details

Defined in Web.Minion.Request.Query

Associated Types

type RequestValue (QueryForm a) Source #

type RequestValue (QueryForm a) Source # 
Instance details

Defined in Web.Minion.Request.Query

type RequestValue (QueryForm a) = a

newtype QueryFlag Source #

Constructors

QueryFlag Bool 

queryParamsForm Source #

Arguments

:: forall r m i ts. (Introspection i Request (QueryForm r), MonadThrow m, FromForm r) 
=> ValueCombinator i (WithReq m (QueryForm r)) ts m

.

Extracts query string to Form

... /> queryParamsForm @MyForm .> ...

queryParam Source #

Arguments

:: forall a m i ts. (FromHttpApiData a, Introspection i QueryParam a, MonadThrow m) 
=> QueryParamName

.

-> ValueCombinator i (WithQueryParam Optional Strict m a) ts m 

Tries to get query param

queryParam "foo" pure /> ...

queryParam' Source #

Arguments

:: forall a m i ts. (FromHttpApiData a, Introspection i QueryParam a, MonadThrow m) 
=> QueryParamName

.

-> ValueCombinator i (WithQueryParam Required Strict m a) ts m 

Tries to get query param

queryParam' "foo" pure /> ...

queryParamLenient Source #

Arguments

:: forall a m i ts. (FromHttpApiData a, Introspection i QueryParam a, Monad m) 
=> QueryParamName

.

-> ValueCombinator i (WithQueryParam Optional (Lenient Text) m a) ts m 

Tries to get query param

queryParam "foo" pure /> ...

queryParamLenient' Source #

Arguments

:: forall a m i ts. (FromHttpApiData a, Introspection i QueryParam a, MonadThrow m) 
=> QueryParamName

.

-> ValueCombinator i (WithQueryParam Required (Lenient Text) m a) ts m 

Tries to get query param

queryParam "foo" pure /> ...