- type Newest = Map String PackInfo
- data CheckDepsRes
- = AllNewest
- | WontAccept [(String, String)] UTCTime
- data DescInfo
- loadNewest :: IO Newest
- loadNewestFrom :: FilePath -> IO Newest
- parseNewest :: ByteString -> Newest
- checkDeps :: Newest -> DescInfo -> (PackageName, Version, CheckDepsRes)
- getPackage :: String -> Newest -> Maybe DescInfo
- parsePackage :: ByteString -> Maybe DescInfo
- loadPackage :: FilePath -> IO (Maybe DescInfo)
- filterPackages :: String -> Newest -> [DescInfo]
Data types
data CheckDepsRes Source
Whether or not a package can accept all of the newest versions of its dependencies. If not, it returns a list of packages which are not accepted, and a timestamp of the most recently updated package.
Read package database
loadNewestFrom :: FilePath -> IO NewestSource
Check a package
checkDeps :: Newest -> DescInfo -> (PackageName, Version, CheckDepsRes)Source
Get a single package
getPackage :: String -> Newest -> Maybe DescInfoSource
Loads up the newest version of a package from the Newest
list, if
available.
parsePackage :: ByteString -> Maybe DescInfoSource
Parse information on a package from the contents of a cabal file.
Get multiple packages
filterPackages :: String -> Newest -> [DescInfo]Source
Find all of the packages matching a given search string.