Copyright | (c) 2020 berberman |
---|---|
License | MIT |
Maintainer | berberman <1793913507@qq.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides functios operating with community.db
of pacman.
Synopsis
- defaultCommunityPath :: FilePath
- loadProcessedCommunity :: (MonadUnliftIO m, PrimMonad m, MonadThrow m) => FilePath -> m CommunityDB
- isInCommunity :: Member CommunityEnv r => PackageName -> Sem r 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
, removing haskell-
prefix.
isInCommunity :: Member CommunityEnv r => PackageName -> Sem r Bool Source #
Check if a package from hackage exists in archlinux community repo.
The following name conversion occurs during the checking to work with loadProcessedCommunity
.
>>>
"aeson" --> "aeson"
>>>
"Cabal" --> "cabal"
>>>
"haskell-a" --> "a"