Copyright | (c) Colin Woodbury 2014 - 2019 |
---|---|
License | GPL3 |
Maintainer | Colin Woodbury <colin@fosskers.ca> |
Safe Haskell | None |
Language | Haskell2010 |
Access package metadata from the Arch Linux User Repository.
Synopsis
- data AurInfo = AurInfo {
- aurIdOf :: Int
- aurNameOf :: Text
- pkgBaseIdOf :: Int
- pkgBaseOf :: Text
- aurVersionOf :: Text
- aurDescriptionOf :: Maybe Text
- urlOf :: Maybe Text
- aurVotesOf :: Int
- popularityOf :: Float
- dateObsoleteOf :: Maybe Int
- aurMaintainerOf :: Maybe Text
- submissionDateOf :: Int
- modifiedDateOf :: Int
- urlPathOf :: Maybe Text
- dependsOf :: [Text]
- makeDepsOf :: [Text]
- optDepsOf :: [Text]
- conflictsOf :: [Text]
- providesOf :: [Text]
- licenseOf :: [Text]
- keywordsOf :: [Text]
- info :: Manager -> [Text] -> IO (Either ClientError [AurInfo])
- search :: Manager -> Text -> IO (Either ClientError [AurInfo])
- data ClientError
Types
All relevant information about an AUR package.
AurInfo | |
|
Queries
info :: Manager -> [Text] -> IO (Either ClientError [AurInfo]) Source #
Perform an info
call on one or more package names.
Will fail with a Nothing
if there was a connection/decoding error.
search :: Manager -> Text -> IO (Either ClientError [AurInfo]) Source #
Perform a search
call on a package name or description text.
Will fail with a Nothing
if there was a connection/decoding error.
Re-exports
These are Servant types which you could want to manipulate without directly depending on (and importing) servant.
data ClientError #
A type representing possible errors in a request
Note that this type substantially changed in 0.12.
FailureResponse (RequestF () (BaseUrl, ByteString)) Response | The server returned an error response including the
failing request. |
DecodeFailure Text Response | The body could not be decoded at the expected type |
UnsupportedContentType MediaType Response | The content-type of the response is not supported |
InvalidContentTypeHeader Response | The content-type header is invalid |
ConnectionError SomeException | There was a connection error, and no response was received |