| Copyright | (c) 2020 berberman |
|---|---|
| License | MIT |
| Maintainer | berberman <1793913507@qq.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Distribution.ArchHs.Community
Description
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.
A name conversion occurs during the checking to fit loadProcessedCommunity.
>>>"aeson" --> "aeson">>>"Cabal" --> "cabal">>>"haskell-a" --> "a"