aur-api-0.1.1.0: ArchLinux AUR json v5 API

Safe HaskellNone
LanguageHaskell2010

Distribution.ArchLinux.AUR.RPC

Description

AUR json API implementation (v5)

AUR json API spec can be found at https://wiki.archlinux.org/index.php/AurJson

Synopsis

Documentation

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.

searchBy :: MonadIO m => SearchBy -> String -> ExceptT String m [AURInfo] Source #

searchBy field SearchBy given string on AUR server possible return types are search and error. Like info, error is captured by a Left.

search :: MonadIO m => String -> ExceptT String m [AURInfo] Source #

synonym of searchBy ByNameDesc