github-rest-1.1.2: Query the GitHub REST API programmatically
MaintainerBrandon Chinn <brandon@leapyear.io>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

GitHub.REST.KeyValue

Description

Define the KeyValue helper type.

Synopsis

Documentation

data KeyValue where Source #

A type representing a key-value pair.

Constructors

(:=) :: (Show v, ToJSON v) => Text -> v -> KeyValue infixr 1 

Instances

Instances details
Show KeyValue Source # 
Instance details

Defined in GitHub.REST.KeyValue

ToJSON [KeyValue] Source # 
Instance details

Defined in GitHub.REST.KeyValue

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.