Exposing RawParam
This commit is contained in:
parent
1a997621e8
commit
9f399d0eea
@ -23,6 +23,7 @@ module Web.Restful.Request
|
||||
, ParamType
|
||||
, ParamName
|
||||
, ParamValue
|
||||
, RawParam (..)
|
||||
-- * RawRequest
|
||||
, RawRequest (..)
|
||||
, PathInfo
|
||||
@ -303,7 +304,7 @@ class Request a where
|
||||
instance Request () where
|
||||
parseRequest = return ()
|
||||
|
||||
-- | Unsures that a String parameter is not blank.
|
||||
-- | Ensures that a String parameter is not blank.
|
||||
notBlank :: MonadRequestReader m => RawParam -> m String
|
||||
notBlank rp =
|
||||
case paramValue rp of
|
||||
|
||||
Loading…
Reference in New Issue
Block a user