http-types-0.8.2: Generic HTTP types for Haskell (for both client and server code).

Safe HaskellNone

Network.HTTP.Types.QueryLike

Synopsis

Documentation

class QueryLike a whereSource

Types which can, and commonly are, converted to Query are in this class.

You can use lists of simple key value pairs, with ByteString (strict, or lazy: ByteString), Text, or String as the key/value types. You can also have the value type lifted into a Maybe to support keys without values; and finally it is possible to put each pair into a Maybe for key-value pairs that aren't always present.

Methods

toQuery :: a -> QuerySource

Convert to Query.

Instances

class QueryKeyLike a whereSource

Types which, in a Query-like key-value list, are used in the Key position.

class QueryValueLike a whereSource

Types which, in a Query-like key-value list, are used in the Value position.