Copyright | (c) 2020-2021 berberman |
---|---|
License | MIT |
Maintainer | berberman <berberman@yandex.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides functions operating with extra.db
of pacman.
Synopsis
- defaultExtraDBPath :: FilePath
- loadExtraDB :: FilePath -> IO ExtraDB
- isInExtra :: (HasMyName n, Member ExtraEnv r) => n -> Sem r Bool
- versionInExtra :: (HasMyName n, Members [ExtraEnv, WithMyErr] r) => n -> Sem r ArchLinuxVersion
- getPkgDesc :: (HasMyName n, Members [ExtraEnv, WithMyErr] r) => n -> Sem r PkgDesc
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.