Copyright | (c) 2020 berberman |
---|---|
License | MIT |
Maintainer | berberman <1793913507@qq.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides functions operating with community.db
of pacman.
Synopsis
- defaultCommunityPath :: FilePath
- loadProcessedCommunity :: (MonadUnliftIO m, PrimMonad m, MonadThrow m) => FilePath -> m CommunityDB
- isInCommunity :: (HasMyName n, Member CommunityEnv r) => n -> Sem r Bool
- versionInCommunity :: (HasMyName n, Members [CommunityEnv, WithMyErr] r) => n -> Sem r CommunityVersion
- compiledWithAlpm :: Bool
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.