Stability | experimental |
---|---|
Maintainer | Ricky Elrod <ricky@elrod.me> |
Safe Haskell | None |
Functions and datatypes for directly calling out to the API and handling queries to and responses from it.
- data StandardResults a = StandardResults {
- _srRows :: [a]
- _srRowsPerPage :: Int
- _srStartRow :: Int
- _srTotalRows :: Int
- _srVisibleRows :: Int
- data Query a = Query {
- _qSearch :: a
- _qRowsPerPage :: Int
- _qStartRow :: Int
- apiGet :: FromJSON a => ByteString -> PackagesConfig -> IO a
Responses
data StandardResults a Source
StandardResults | |
|
Eq a => Eq (StandardResults a) | |
Show a => Show (StandardResults a) | |
FromJSON a => FromJSON (StandardResults a) |
Requests
Query | |
|
apiGet :: FromJSON a => ByteString -> PackagesConfig -> IO aSource
Perform a GET request to the API.