Safe Haskell | None |
---|---|
Language | Haskell2010 |
Implements AUR json API (v5)
AUR json API spec can be found at https://wiki.archlinux.org/index.php/AurJson
- data SearchBy
- data AURInfo = AURInfo {
- packageID :: Int
- packageName :: Text
- packagePackageBaseID :: Int
- packagePackageBase :: Text
- packageVersion :: Text
- packageDescription :: Maybe Text
- packageURL :: Maybe Text
- packageNumVotes :: Int
- packagePopularity :: Double
- packageOutOfDate :: Maybe Int
- packageMaintainer :: Maybe Text
- packageFirstSubmitted :: Int
- packageLastModified :: Int
- packageURLPath :: Maybe Text
- packageDepends :: [Text]
- packageMakeDepends :: [Text]
- packageOptDepends :: [Text]
- packageConflicts :: [Text]
- packageLicense :: [Text]
- packageKeywords :: [Text]
- info :: MonadIO m => [String] -> ExceptT String m [AURInfo]
- searchBy :: MonadIO m => SearchBy -> String -> ExceptT String m [AURInfo]
- search :: MonadIO m => String -> ExceptT String m [AURInfo]
Documentation
AURInfo | |
|
info :: MonadIO m => [String] -> ExceptT String m [AURInfo] Source #
Query info of given list of packages, match exact names possible return types are multiinfo and error. error type is captured by ExceptT (Left). However, query may return empty list which isn't considered as an error.