| Copyright | (c) 2021 berberman |
|---|---|
| License | MIT |
| Maintainer | berberman <berberman@yandex.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.ArchLinux.Types
Contents
Description
This module defines types and their serializations used in API.
Fields' names are prefixed with _ for lenses generation,
consider using Web.ArchLinux.Types.Lens to access data types smoothly.
Synopsis
- data Repo
- data Arch
- data License
- data PackageInformation = PackageInformation {
- _pkgname :: Text
- _pkgbase :: Text
- _repo :: Repo
- _arch :: Arch
- _pkgver :: Text
- _pkgrel :: Text
- _epoch :: Int
- _pkgdesc :: Text
- _url :: Text
- _filename :: Text
- _compressedSize :: Int
- _installedSize :: Int
- _buildDate :: UTCTime
- _lastUpdate :: UTCTime
- _flageDate :: Maybe UTCTime
- _maintainers :: [Text]
- _packager :: Text
- _groups :: [Text]
- _licenses :: [License]
- _conflicts :: [Text]
- _provides :: [Text]
- _replaces :: [Text]
- _depends :: [Text]
- _optdepends :: [Text]
- _makedepends :: [Text]
- _checkdepends :: [Text]
- data PackageFiles = PackageFiles {}
- data Flagged
- data ArchLinuxResponse a = ArchLinuxResponse {}
- data AurSearch = AurSearch {
- _id :: Int
- _name :: Text
- _packageBaseID :: Int
- _packageBase :: Text
- _version :: Text
- _description :: Maybe Text
- _url :: Maybe Text
- _numVotes :: Int
- _popularity :: Double
- _outOfDate :: Maybe Int
- _maintainer :: Maybe Text
- _firstSubmitted :: Int
- _lastModified :: Int
- _urlPath :: Text
- data AurInfo = AurInfo {}
- data AurResponseType
- data AurResponse a = AurResponse {
- _version :: Int
- _aurType :: AurResponseType
- _resultCount :: Int
- _results :: a
- _error :: Maybe Text
Arch Linux official
Official repositories.
Constructors
| Core | |
| Extra | |
| Testing | |
| Multilib | |
| MultilibTesting | |
| Community | |
| CommunityTesting | |
| KDEUnstable |
Instances
Official architectures.
Instances
| Enum Arch Source # | |
| Eq Arch Source # | |
| Ord Arch Source # | |
| Show Arch Source # | |
| Generic Arch Source # | |
| ToJSON Arch Source # | |
Defined in Web.ArchLinux.Types | |
| FromJSON Arch Source # | |
| ToHttpApiData Arch Source # | |
Defined in Web.ArchLinux.Types Methods toUrlPiece :: Arch -> Text # toEncodedUrlPiece :: Arch -> Builder # toHeader :: Arch -> ByteString # toQueryParam :: Arch -> Text # | |
| HasArch PackageFiles Arch Source # | |
Defined in Web.ArchLinux.Types.Lens | |
| HasArch PackageInformation Arch Source # | |
Defined in Web.ArchLinux.Types.Lens | |
| type Rep Arch Source # | |
Defined in Web.ArchLinux.Types | |
Liceses defined in https://archlinux.org/packages/core/any/licenses/, plus special cases listed on the wiki https://wiki.archlinux.org/title/PKGBUILD#license.
Constructors
| AGPL3 | |
| Apache | |
| Artistic2_0 | |
| CDDL | |
| CPL | |
| EPL | |
| FDL1_2 | |
| FDL1_3 | |
| GPL2 | |
| GPL3 | |
| LGPL2_1 | |
| LGPL3 | |
| LPPL | |
| MPL | |
| MPL2 | |
| PHP | |
| PSF | |
| PerlArtistic | |
| RUBY | |
| Unlicense | |
| W3C | |
| ZPL | |
| BSD | |
| ISC | |
| MIT | |
| ZLIB | |
| Python | |
| OFL | |
| Custom Text |
Instances
data PackageInformation Source #
Package details returned by getPackageDetails.
Constructors
| PackageInformation | |
Fields
| |
Instances
data PackageFiles Source #
Package files list returned by getPackageFiles
Constructors
| PackageFiles | |
Instances
Flagged package means out-of-date.
Constructors
| Flagged | |
| NotFlagged |
Instances
| Enum Flagged Source # | |
| Eq Flagged Source # | |
| Ord Flagged Source # | |
| Show Flagged Source # | |
| Generic Flagged Source # | |
| ToHttpApiData Flagged Source # | |
Defined in Web.ArchLinux.Types Methods toUrlPiece :: Flagged -> Text # toEncodedUrlPiece :: Flagged -> Builder # toHeader :: Flagged -> ByteString # toQueryParam :: Flagged -> Text # | |
| type Rep Flagged Source # | |
data ArchLinuxResponse a Source #
Response data type of searchPackage.
Instances
AUR
Search results returned by searchAur.
Some of fields are renamed in this record type, for sharing overloaded lenses between data type returned by Arch Linux official API.
Constructors
| AurSearch | |
Fields
| |
Instances
Package details returned by getAurInfo.
This data type extends AurSearch informally,
so it includes $sel:_search:AurInfo as a member.
Constructors
| AurInfo | |
Instances
data AurResponseType Source #
Return types of AUR API.
Instances
data AurResponse a Source #
Response data type of AUR API.
Constructors
| AurResponse | |