apiary-0.17.2: Simple and type safe web framework that can be automatically generate API documentation.

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Apiary.Filter.Internal.Strategy

Synopsis

Documentation

class Strategy w where Source

Associated Types

type SNext w as a :: [*] Source

Methods

readStrategy :: (v -> Maybe a) -> ((k, v) -> Bool) -> w a -> [(k, v)] -> SList as -> Maybe (SList (SNext w as a)) Source

strategyRep :: forall a. w a -> StrategyRep Source

getQuery :: (v -> Maybe a) -> w a -> ((k, v) -> Bool) -> [(k, v)] -> [Maybe a] Source

data Option a Source

get first matched key( [0,) params to Type.). since 0.5.0.0.

Constructors

Option 

Instances

Strategy Option 
Typeable (* -> *) Option 
type SNext Option as a = (:) * (Maybe a) as 

data Optional a Source

Constructors

Optional Text a 

Instances

Strategy Optional 
Typeable (* -> *) Optional 
type SNext Optional as a = (:) * a as 

data First a Source

get first matched key ( [1,) params to Maybe Type.) since 0.5.0.0.

Constructors

First 

Instances

Strategy First 
Typeable (* -> *) First 
type SNext First as a = (:) * a as 

data One a Source

get key ( [1,1] param to Type.) since 0.5.0.0.

Constructors

One 

Instances

Strategy One 
Typeable (* -> *) One 
type SNext One as a = (:) * a as 

data Many a Source

get parameters ( [0,) params to [Type] ) since 0.5.0.0.

Constructors

Many 

Instances

Strategy Many 
Typeable (* -> *) Many 
type SNext Many as a = (:) * [a] as 

data Some a Source

get parameters ( [1,) params to [Type] ) since 0.5.0.0.

Constructors

Some 

Instances

Strategy Some 
Typeable (* -> *) Some 
type SNext Some as a = (:) * [a] as 

data LimitSome a Source

get parameters with upper limit ( [1,n] to [Type]) since 0.6.0.0.

Constructors

LimitSome !Int 

Instances

Strategy LimitSome 
Typeable (* -> *) LimitSome 
type SNext LimitSome as a = (:) * [a] as 

data Check a Source

type check ( [0,) params to No argument ) since 0.5.0.0.

Constructors

Check 

Instances

Strategy Check 
Typeable (* -> *) Check 
type SNext Check as a = as 

pOption :: proxy a -> Option a Source

construct Option proxy. since 0.5.1.0.

pOptional :: Show a => a -> Optional a Source

construct Optional proxy. since 0.16.0.

pFirst :: proxy a -> First a Source

construct First proxy. since 0.5.1.0.

pOne :: proxy a -> One a Source

construct One proxy. since 0.5.1.0.

pMany :: proxy a -> Many a Source

construct Many proxy. since 0.5.1.0.

pSome :: proxy a -> Some a Source

construct Some proxy. since 0.5.1.0.

pLimitSome :: Int -> proxy a -> LimitSome a Source

construct LimitSome proxy. since 0.16.0.

pCheck :: proxy a -> Check a Source

construct Check proxy. since 0.5.1.0.