aur-7.0.6: Access metadata from the Arch Linux User Repository.
Copyright(c) Colin Woodbury 2014 - 2020
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

Instances details
Eq AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

Methods

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

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

Ord AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

Show AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

Generic AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

Associated Types

type Rep AurInfo :: Type -> Type #

Methods

from :: AurInfo -> Rep AurInfo x #

to :: Rep AurInfo x -> AurInfo #

Hashable AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

Methods

hashWithSalt :: Int -> AurInfo -> Int #

hash :: AurInfo -> Int #

ToJSON AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

FromJSON AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

type Rep AurInfo Source # 
Instance details

Defined in Linux.Arch.Aur

type Rep AurInfo = D1 ('MetaData "AurInfo" "Linux.Arch.Aur" "aur-7.0.6-EbTyqhtT74078wmxY0QVRs" 'False) (C1 ('MetaCons "AurInfo" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "aurIdOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "aurNameOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "pkgBaseIdOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "pkgBaseOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "aurVersionOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) :*: ((S1 ('MetaSel ('Just "aurDescriptionOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "urlOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "aurVotesOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "popularityOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float) :*: S1 ('MetaSel ('Just "dateObsoleteOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))))) :*: (((S1 ('MetaSel ('Just "aurMaintainerOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "submissionDateOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "modifiedDateOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "urlPathOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dependsOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text])))) :*: ((S1 ('MetaSel ('Just "makeDepsOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "optDepsOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "conflictsOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]))) :*: (S1 ('MetaSel ('Just "providesOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "licenseOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "keywordsOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text])))))))

data AurError Source #

Instances

Instances details
Eq AurError Source # 
Instance details

Defined in Linux.Arch.Aur

Ord AurError Source # 
Instance details

Defined in Linux.Arch.Aur

Show AurError Source # 
Instance details

Defined in Linux.Arch.Aur

Queries

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

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

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

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