aur-6.2.0.1: Access metadata from the Arch Linux User Repository.

Copyright(c) Colin Woodbury 2014 - 2019
LicenseGPL3
MaintainerColin Woodbury <colin@fosskers.ca>
Safe HaskellNone
LanguageHaskell2010

Linux.Arch.Aur

Contents

Description

Access package metadata from the Arch Linux User Repository.

Synopsis

Types

data AurInfo Source #

All relevant information about an AUR package.

Instances
Eq AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

Methods

(==) :: AurInfo -> AurInfo -> Bool #

(/=) :: AurInfo -> AurInfo -> Bool #

Show AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

ToJSON AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

FromJSON AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

Queries

info :: Manager -> [Text] -> IO (Either ClientError [AurInfo]) Source #

Perform an info call on one or more package names. Will fail with a Nothing if there was a connection/decoding error.

search :: Manager -> Text -> IO (Either ClientError [AurInfo]) Source #

Perform a search call on a package name or description text. Will fail with a Nothing if there was a connection/decoding error.

Re-exports

These are Servant types which you could want to manipulate without directly depending on (and importing) servant.

data ClientError #

A type representing possible errors in a request

Note that this type substantially changed in 0.12.

Constructors

FailureResponse (RequestF () (BaseUrl, ByteString)) Response

The server returned an error response including the failing request. requestPath includes the BaseUrl and the path of the request.

DecodeFailure Text Response

The body could not be decoded at the expected type

UnsupportedContentType MediaType Response

The content-type of the response is not supported

InvalidContentTypeHeader Response

The content-type header is invalid

ConnectionError SomeException

There was a connection error, and no response was received

Instances
Eq ClientError 
Instance details

Defined in Servant.Client.Core.ClientError

Show ClientError 
Instance details

Defined in Servant.Client.Core.ClientError

Generic ClientError 
Instance details

Defined in Servant.Client.Core.ClientError

Associated Types

type Rep ClientError :: Type -> Type #

Exception ClientError 
Instance details

Defined in Servant.Client.Core.ClientError

NFData ClientError

Note: an exception in ConnectionError might not be evaluated fully, We only rnf its showed value.

Instance details

Defined in Servant.Client.Core.ClientError

Methods

rnf :: ClientError -> () #

MonadError ClientError ClientM 
Instance details

Defined in Servant.Client.Internal.HttpClient

type Rep ClientError 
Instance details

Defined in Servant.Client.Core.ClientError