Safe Haskell | None |
---|
- data Parameter a = Parameter {
- _pName :: !ByteString
- _pRead :: [ByteString] -> Either ByteString a
- _pDefault :: !(Maybe a)
- data Param a = Param ByteString
- data ParamOpt a = ParamOpt ByteString
- data ParamDef a = ParamDef ByteString a
- data HasParam = HasParam ByteString
Documentation
The most generic request parameter predicate provided.
It will get all request parameter values of _name
and pass them on to
the conversion function _read
, which might either yield an error
message or a value. If the parameter is not present, an optional default may be
returned instead, if nothing is provided, the error message will be used
when construction the 400 status.
Parameter | |
|