| Copyright | (c) 2020-2021 berberman |
|---|---|
| License | MIT |
| Maintainer | berberman <berberman@yandex.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Distribution.ArchHs.CommunityDB
Description
This module provides functions operating with community.db of pacman.
Synopsis
- defaultCommunityDBPath :: FilePath
- loadCommunityDB :: FilePath -> IO CommunityDB
- isInCommunity :: (HasMyName n, Member CommunityEnv r) => n -> Sem r Bool
- versionInCommunity :: (HasMyName n, Members [CommunityEnv, WithMyErr] r) => n -> Sem r ArchLinuxVersion
Documentation
defaultCommunityDBPath :: FilePath Source #
Default path to community.db.
loadCommunityDB :: FilePath -> IO CommunityDB Source #
Load community.db from path.
desc files in the db will be parsed by descParser.
isInCommunity :: (HasMyName n, Member CommunityEnv r) => n -> Sem r Bool Source #
Check if a package exists in archlinux community repo.
See HasMyName.
versionInCommunity :: (HasMyName n, Members [CommunityEnv, WithMyErr] r) => n -> Sem r ArchLinuxVersion Source #
Get the version of a package in archlinux community repo.
If the package does not exist, PkgNotFound will be thrown.