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

Distribution.ArchHs.CommunityDB

Description

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

Synopsis

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.