aur-api-0.1.2.1: ArchLinux AUR json v5 API

Safe HaskellNone
LanguageHaskell2010

Distribution.ArchLinux.AUR

Description

Implements AUR json API (v5)

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

  • info: Query metadata for list of packages (match exact names)
  • searchBy: Search a given pattern by either name, desc, or name-desc
  • search: Synonym of searchBy ByNameDesc.

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