Safe Haskell | None |
---|---|
Language | Haskell2010 |
A module defining the KeyValuePairs type. This type may be used to represent a structure in a specification that is a collection of key-vaue pairs. For example query parameters and URLEncoded request bodies.
The module provides FromJSON and ToJSON instances for KeyValuePairs. Valid KeyValuePairs JSON is a single JSON object where all values are either String, Scienfific or Bool.
Synopsis
- newtype KeyValuePairs = KeyValuePairs [KeyValuePair]
- data KeyValuePair = KeyValuePair Text Text
Documentation
newtype KeyValuePairs Source #
A container for a list of key-value pairs
Instances
Show KeyValuePairs Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs showsPrec :: Int -> KeyValuePairs -> ShowS # show :: KeyValuePairs -> String # showList :: [KeyValuePairs] -> ShowS # | |
ToJSON KeyValuePairs Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs toJSON :: KeyValuePairs -> Value # toEncoding :: KeyValuePairs -> Encoding # toJSONList :: [KeyValuePairs] -> Value # toEncodingList :: [KeyValuePairs] -> Encoding # | |
FromJSON KeyValuePairs Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs parseJSON :: Value -> Parser KeyValuePairs # parseJSONList :: Value -> Parser [KeyValuePairs] # |
data KeyValuePair Source #
A representation of a single key-value pair
Instances
Show KeyValuePair Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs showsPrec :: Int -> KeyValuePair -> ShowS # show :: KeyValuePair -> String # showList :: [KeyValuePair] -> ShowS # |