arch-hs-0.1.1.0: A program generating PKGBUILD for hackage packages
Copyright(c) 2020 berberman
LicenseMIT
Maintainerberberman <1793913507@qq.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.ArchHs.Community

Description

This module provides functios 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, 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"