github-rest-1.0.2: Query the GitHub REST API programmatically
GitHub.REST.KeyValue
Description
Define the KeyValue helper type.
KeyValue
data KeyValue where Source #
A type representing a key-value pair.
Constructors
Defined in GitHub.REST.KeyValue
Methods
showsPrec :: Int -> KeyValue -> ShowS #
show :: KeyValue -> String #
showList :: [KeyValue] -> ShowS #
toJSON :: [KeyValue] -> Value #
toEncoding :: [KeyValue] -> Encoding #
toJSONList :: [[KeyValue]] -> Value #
toEncodingList :: [[KeyValue]] -> Encoding #
kvToValue :: [KeyValue] -> Value Source #
Convert the given KeyValues into a JSON Object.
kvToText :: KeyValue -> (Text, Text) Source #
Represent the given KeyValue as a pair of Texts.