Safe Haskell | None |
---|---|
Language | Haskell2010 |
Testing.CurlRunnings.Internal.KeyValuePairs
Description
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 KeyType Text
Documentation
newtype KeyValuePairs Source #
A container for a list of key-value pairs
Constructors
KeyValuePairs [KeyValuePair] |
Instances
Eq KeyValuePairs Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs Methods (==) :: KeyValuePairs -> KeyValuePairs -> Bool # (/=) :: KeyValuePairs -> KeyValuePairs -> Bool # | |
Show KeyValuePairs Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs Methods showsPrec :: Int -> KeyValuePairs -> ShowS # show :: KeyValuePairs -> String # showList :: [KeyValuePairs] -> ShowS # | |
ToJSON KeyValuePairs Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs Methods toJSON :: KeyValuePairs -> Value # toEncoding :: KeyValuePairs -> Encoding # toJSONList :: [KeyValuePairs] -> Value # toEncodingList :: [KeyValuePairs] -> Encoding # | |
FromJSON KeyValuePairs Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs Methods parseJSON :: Value -> Parser KeyValuePairs # parseJSONList :: Value -> Parser [KeyValuePairs] # |
data KeyValuePair Source #
A representation of a single key-value pair
Constructors
KeyValuePair KeyType Text |
Instances
Eq KeyValuePair Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs | |
Show KeyValuePair Source # | |
Defined in Testing.CurlRunnings.Internal.KeyValuePairs Methods showsPrec :: Int -> KeyValuePair -> ShowS # show :: KeyValuePair -> String # showList :: [KeyValuePair] -> ShowS # |