arch-hs-0.11.1.0: Distribute hackage packages to archlinux
Copyright(c) 2020-2021 berberman
LicenseMIT
Maintainerberberman <berberman@yandex.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.ArchHs.PkgDesc

Description

This module provides parser of desc file in pacman db.

Synopsis

Documentation

data PkgDesc Source #

Package description file of a installed system package, retrieved from repo.db file.

Instances

Instances details
Generic PkgDesc Source # 
Instance details

Defined in Distribution.ArchHs.Types

Associated Types

type Rep PkgDesc :: Type -> Type #

Methods

from :: PkgDesc -> Rep PkgDesc x #

to :: Rep PkgDesc x -> PkgDesc #

Show PkgDesc Source # 
Instance details

Defined in Distribution.ArchHs.Types

NFData PkgDesc Source # 
Instance details

Defined in Distribution.ArchHs.Types

Methods

rnf :: PkgDesc -> () #

Eq PkgDesc Source # 
Instance details

Defined in Distribution.ArchHs.Types

Methods

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

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

Ord PkgDesc Source # 
Instance details

Defined in Distribution.ArchHs.Types

type Rep PkgDesc Source # 
Instance details

Defined in Distribution.ArchHs.Types

type DescParser = Parsec Void String Source #

A parser takes String as input, without user state.

descParser :: DescParser PkgDesc Source #

Parse a desc file.

descFieldsParser :: DescParser (Map String [String]) Source #

Parse fields of desc.

promoteDependent :: PkgDependent -> Maybe PkgDesc Source #

Promote a versioned dependent to package description