Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- singleParameter :: FromUri a => ByteString -> (a -> GenericApplication b) -> GenericApplication b
- maybeSingleParameter :: FromUri a => ByteString -> (Maybe a -> GenericApplication r) -> GenericApplication r
Documentation
singleParameter :: FromUri a => ByteString -> (a -> GenericApplication b) -> GenericApplication b Source #
Match single parameter in the query string, fails when the parameter is not found or the query string contains multiple values for the parameter
maybeSingleParameter :: FromUri a => ByteString -> (Maybe a -> GenericApplication r) -> GenericApplication r Source #
Match single parameter in the query string, if multiple values for the same parameter found then fails