stackage-curator-0.15.0.0: Tools for curating Stackage bundles

Safe HaskellNone
LanguageHaskell2010

Stackage.GhcPkg

Description

General commands related to ghc-pkg.

Documentation

setupPackageDatabase Source #

Arguments

:: Maybe FilePath

database location, Nothing if using global DB

-> FilePath

documentation root

-> (ByteString -> IO ())

logging

-> Map PackageName Version

packages and versions to be installed

-> (PackageIdentifier -> IO ())

callback to be used when unregistering a package

-> IO (Map PackageName Version)

packages remaining in the database after cleanup