| Copyright | (c) Colin Woodbury 2012 - 2020 |
|---|---|
| License | GPL3 |
| Maintainer | Colin Woodbury <colin@fosskers.ca> |
| Safe Haskell | None |
| Language | Haskell2010 |
Aura.Cache
Description
Reading and searching the package cache.
Synopsis
- newtype Cache = Cache {}
- cacheContents :: Path Absolute -> IO Cache
- defaultPackageCache :: Path Absolute
- cacheMatches :: Settings -> Text -> IO [PackagePath]
- pkgsInCache :: Settings -> NESet PkgName -> IO (Set PkgName)
Types
Every package in the current cache, paired with its original filename.
Constructors
| Cache | |
Fields | |
cacheContents :: Path Absolute -> IO Cache Source #
Given a path to the package cache, yields its contents in a usable form.
Misc.
defaultPackageCache :: Path Absolute Source #
The default location of the package cache: /var/cache/pacman/pkg/
cacheMatches :: Settings -> Text -> IO [PackagePath] Source #
Any entries (filepaths) in the cache that match a given Text.