purescheme-wai-routing-core-0.1.3.0: Simple Routing functions for Wai Applications
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Routing.Purescheme.Core.Query

Synopsis

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