Safe Haskell | None |
---|---|
Language | Haskell98 |
- type Newest = Map String PackInfo
- data CheckDepsRes
- = AllNewest
- | WontAccept [(String, String)] UTCTime
- data DescInfo = DescInfo {
- diHaystack :: String
- diDeps :: [Dependency]
- diLibDeps :: [Dependency]
- diPackage :: PackageIdentifier
- diSynopsis :: String
- loadNewest :: IO Newest
- loadNewestFrom :: FilePath -> IO Newest
- parseNewest :: ByteString -> Newest
- checkDeps :: Newest -> DescInfo -> (PackageName, Version, CheckDepsRes)
- checkLibDeps :: Newest -> DescInfo -> (PackageName, Version, CheckDepsRes)
- getPackage :: String -> Newest -> Maybe DescInfo
- parsePackage :: ByteString -> Maybe DescInfo
- loadPackage :: FilePath -> IO (Maybe DescInfo)
- filterPackages :: String -> Newest -> [DescInfo]
- deepDeps :: Newest -> [DescInfo] -> [DescInfo]
- deepLibDeps :: Newest -> [DescInfo] -> [DescInfo]
- type Reverses = Map String (Version, [(String, VersionRange)])
- getReverses :: Newest -> Reverses
- diName :: DescInfo -> String
- data PackInfo = PackInfo {}
- data DescInfo = DescInfo {
- diHaystack :: String
- diDeps :: [Dependency]
- diLibDeps :: [Dependency]
- diPackage :: PackageIdentifier
- diSynopsis :: String
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.
Information on a single package.
DescInfo | |
|
Read package database
loadNewest :: IO Newest Source
loadNewestFrom :: FilePath -> IO Newest Source
parseNewest :: ByteString -> Newest Source
Check a package
checkDeps :: Newest -> DescInfo -> (PackageName, Version, CheckDepsRes) Source
checkLibDeps :: Newest -> DescInfo -> (PackageName, Version, CheckDepsRes) Source
Get a single package
getPackage :: String -> Newest -> Maybe DescInfo Source
Loads up the newest version of a package from the Newest
list, if
available.
parsePackage :: ByteString -> Maybe DescInfo Source
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.
deepDeps :: Newest -> [DescInfo] -> [DescInfo] Source
Find all packages depended upon by the given list of packages.
deepLibDeps :: Newest -> [DescInfo] -> [DescInfo] Source
Find all packages depended upon by the given list of packages.
Reverse dependencies
getReverses :: Newest -> Reverses Source
Helpers
Internal
Information on a single package.
DescInfo | |
|