-- 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: Get metadata for one package.
-- - multiinfo: Get metadata for many packages at once.
-- - search: Get limited metadata for packages that match a given
-- regex.
-- - msearch: Get metadata for all packages maintained by a given
-- user.
--
--
-- By default this library supports version 3 of the RPC, and hence
-- version 3.2+ of the AUR.
@package aur
@version 4.0.1
module Linux.Arch.Aur.Types
data AurInfo
AurInfo :: Int -> Text -> Int -> Text -> Text -> Text -> [Text] -> Text -> Int -> Float -> Maybe Int -> Maybe Text -> Int -> Int -> Text -> [Text] -> [Text] -> [Text] -> [Text] -> [Text] -> AurInfo
[aurIdOf] :: AurInfo -> Int
[aurNameOf] :: AurInfo -> Text
[pkgBaseIdOf] :: AurInfo -> Int
[pkgBaseOf] :: AurInfo -> Text
[aurVersionOf] :: AurInfo -> Text
[aurDescriptionOf] :: AurInfo -> Text
[licenseOf] :: AurInfo -> [Text]
[urlOf] :: AurInfo -> Text
[aurVotesOf] :: AurInfo -> Int
[popularityOf] :: AurInfo -> Float
[dateObsoleteOf] :: AurInfo -> Maybe Int
[aurMaintainerOf] :: AurInfo -> Maybe Text
[submissionDatOf] :: AurInfo -> Int
[modifiedDateOf] :: AurInfo -> Int
[urlPathOf] :: AurInfo -> Text
[dependsOf] :: AurInfo -> [Text]
[makeDepsOf] :: AurInfo -> [Text]
[optDepsOf] :: AurInfo -> [Text]
[conflictsOf] :: AurInfo -> [Text]
[providesOf] :: AurInfo -> [Text]
instance GHC.Show.Show Linux.Arch.Aur.Types.AurInfo
instance GHC.Classes.Eq Linux.Arch.Aur.Types.AurInfo
instance Data.Aeson.Types.Class.FromJSON Linux.Arch.Aur.Types.AurInfo
module Linux.Arch.Aur.Rpc
-- | Returns all information about one package.
info :: MonadIO m => Text -> m (Maybe AurInfo)
-- | Like info, but can handle requests for multiple packages at
-- once. More efficient than using info multiple times.
multiinfo :: MonadIO m => [Text] -> m [AurInfo]
-- | Yields any matches to the input as AurInfo, but doesn't include
-- dependency information.
search :: MonadIO m => Text -> m [AurInfo]
-- | Search the AUR by Maintainer name.
msearch :: MonadIO m => Text -> m [AurInfo]
-- | info call as Haskellised JSON.
infoJ :: MonadIO m => Text -> m (Maybe Value)
-- | multiinfo call as Haskellised JSON.
multiinfoJ :: MonadIO m => [Text] -> m (Maybe Value)
-- | search call as Haskellised JSON.
searchJ :: MonadIO m => Text -> m (Maybe Value)
-- | msearch call as Haskellised JSON.
msearchJ :: MonadIO m => Text -> m (Maybe Value)
-- | info with explicit RPC endpoint and API version.
info' :: MonadIO m => Text -> String -> Text -> m (Maybe AurInfo)
-- | multiinfo with explicit RPC endpoint and API version.
multiinfo' :: MonadIO m => [Text] -> String -> Text -> m [AurInfo]
search' :: MonadIO m => Text -> String -> Text -> m [AurInfo]
msearch' :: MonadIO m => Text -> String -> Text -> m [AurInfo]
infoJ' :: MonadIO m => Text -> String -> Text -> m (Maybe Value)
multiinfoJ' :: MonadIO m => [Text] -> String -> Text -> m (Maybe Value)
searchJ' :: MonadIO m => Text -> String -> Text -> m (Maybe Value)
msearchJ' :: MonadIO m => Text -> String -> Text -> m (Maybe Value)
-- | Conversion of JSON to nicely formatted Text.
pretty :: Value -> Text
module Linux.Arch.Aur.Pkgbuild
-- | The PKGBUILD of a given package, retrieved from the AUR servers.
pkgbuild :: MonadIO m => String -> m (Maybe Text)
-- | Callable with Text as well, if that's easier.
pkgbuild' :: MonadIO m => Text -> m (Maybe Text)
-- | The location of a given package's PKGBUILD on the AUR servers.
pkgbuildUrl :: String -> String
module Linux.Arch.Aur