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.ExtraDB

Description

This module provides functions operating with extra.db of pacman.

Synopsis

Documentation

defaultExtraDBPath :: FilePath Source #

Default path to extra.db.

loadExtraDB :: FilePath -> IO ExtraDB Source #

Load extra.db from path. desc files in the db will be parsed by descParser.

isInExtra :: (HasMyName n, Member ExtraEnv r) => n -> Sem r Bool Source #

Check if a package exists in archlinux extra repo. See HasMyName.

versionInExtra :: (HasMyName n, Members [ExtraEnv, WithMyErr] r) => n -> Sem r ArchLinuxVersion Source #

Get the version of a package in archlinux extra repo. If the package does not exist, PkgNotFound will be thrown.

getPkgDesc :: (HasMyName n, Members [ExtraEnv, WithMyErr] r) => n -> Sem r PkgDesc Source #

Get the pkgdesc a package in archlinux extra repo. If the package does not exist, PkgNotFound will be thrown.