packdeps-0.4.1: Check your cabal packages for lagging dependencies.

Safe HaskellNone
LanguageHaskell98

Distribution.PackDeps

Contents

Synopsis

Data types

type Newest = Map String PackInfo Source

The newest version of every package.

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.

Instances

data DescInfo Source

Information on a single package.

Read package database

Check a package

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.

loadPackage :: FilePath -> IO (Maybe DescInfo) Source

Load a single package from 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

Helpers

Internal

data DescInfo Source

Information on a single package.