arch-hs-0.0.0.0: A program generating PKGBUILD for hackage packages.
Copyright(c) 2020 berberman
LicenseMIT
Maintainerberberman <1793913507@qq.com>
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. A name conversion occurs during the checking to fit loadProcessedCommunity.

>>> "aeson" --> "aeson"
>>> "Cabal" --> "cabal"
>>> "haskell-a" --> "a"