-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Access metadata from the Arch Linux User Repository. -- -- Access package information from Arch Linux's AUR via its RPC -- interface. The main exposed functions reflect those of the RPC. -- info gets metadata for one package. search gets limited -- metadata for packages that match a given regex. By default this -- library supports version 5 of the RPC, and hence version 4.2+ of the -- AUR. @package aur @version 6.2.0 -- | Access package metadata from the Arch Linux User Repository. module Linux.Arch.Aur -- | All relevant information about an AUR package. data AurInfo AurInfo :: Int -> Text -> Int -> Text -> Text -> Maybe Text -> Maybe Text -> Int -> Float -> Maybe Int -> Maybe Text -> Int -> Int -> Maybe Text -> [Text] -> [Text] -> [Text] -> [Text] -> [Text] -> [Text] -> [Text] -> AurInfo [aurIdOf] :: AurInfo -> Int [aurNameOf] :: AurInfo -> Text [pkgBaseIdOf] :: AurInfo -> Int [pkgBaseOf] :: AurInfo -> Text [aurVersionOf] :: AurInfo -> Text [aurDescriptionOf] :: AurInfo -> Maybe Text [urlOf] :: AurInfo -> Maybe Text [aurVotesOf] :: AurInfo -> Int [popularityOf] :: AurInfo -> Float [dateObsoleteOf] :: AurInfo -> Maybe Int [aurMaintainerOf] :: AurInfo -> Maybe Text [submissionDateOf] :: AurInfo -> Int [modifiedDateOf] :: AurInfo -> Int [urlPathOf] :: AurInfo -> Maybe Text [dependsOf] :: AurInfo -> [Text] [makeDepsOf] :: AurInfo -> [Text] [optDepsOf] :: AurInfo -> [Text] [conflictsOf] :: AurInfo -> [Text] [providesOf] :: AurInfo -> [Text] [licenseOf] :: AurInfo -> [Text] [keywordsOf] :: AurInfo -> [Text] -- | Perform an info call on one or more package names. Will fail -- with a Nothing if there was a connection/decoding error. info :: Manager -> [Text] -> IO (Either ClientError [AurInfo]) -- | Perform a search call on a package name or description text. -- Will fail with a Nothing if there was a connection/decoding -- error. search :: Manager -> Text -> IO (Either ClientError [AurInfo]) -- | A type representing possible errors in a request -- -- Note that this type substantially changed in 0.12. data ClientError -- | The server returned an error response including the failing request. -- requestPath includes the BaseUrl and the path of the -- request. FailureResponse :: RequestF () (BaseUrl, ByteString) -> Response -> ClientError -- | The body could not be decoded at the expected type DecodeFailure :: Text -> Response -> ClientError -- | The content-type of the response is not supported UnsupportedContentType :: MediaType -> Response -> ClientError -- | The content-type header is invalid InvalidContentTypeHeader :: Response -> ClientError -- | There was a connection error, and no response was received ConnectionError :: SomeException -> ClientError instance GHC.Show.Show Linux.Arch.Aur.RPCResp instance GHC.Show.Show Linux.Arch.Aur.AurInfo instance GHC.Classes.Eq Linux.Arch.Aur.AurInfo instance Data.Aeson.Types.FromJSON.FromJSON Linux.Arch.Aur.RPCResp instance Data.Aeson.Types.FromJSON.FromJSON Linux.Arch.Aur.AurInfo instance Data.Aeson.Types.ToJSON.ToJSON Linux.Arch.Aur.AurInfo