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

Distribution.ArchHs.Community

Description

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

Synopsis

Documentation

defaultCommunityPath :: FilePath Source #

Default path to community.db.

loadProcessedCommunity :: (MonadUnliftIO m, PrimMonad m, MonadThrow m) => FilePath -> m 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 CommunityVersion Source #

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

compiledWithAlpm :: Bool Source #

Whether this program enables alpm support.