fbrnch-0.7.2: Build and create Fedora package repos and branches
Copyright(c) 2020 Jens Petersen
LicenseMIT
MaintainerJens Petersen <juhpetersen@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Fedora.PDC

Description

Fedora PDC web api client library

Synopsis

Documentation

queryPDC :: String -> String -> Query -> IO Object Source #

low-level query

lookupKey :: FromJSON a => Text -> Object -> Maybe a #

Look up key in object

lookupKey' :: FromJSON a => Text -> Object -> a #

Like lookupKey but raises an error if no key found

makeKey :: String -> String -> Query #

Make a singleton key-value Query

makeItem :: String -> String -> QueryItem #

Make a key-value QueryItem

maybeKey :: String -> Maybe String -> Query #

Maybe create a query key

type Query = [QueryItem] #

Query.

General form: a=b&c=d, but if the value is Nothing, it becomes a&c=d.

type QueryItem = (ByteString, Maybe ByteString) #

Query item

getResultsList :: Object -> [Object] Source #

Get results key from a response object