prune-juice-0.3: Prune unused Haskell dependencies
Safe HaskellNone
LanguageHaskell2010

Data.Prune.Dependency

Description

Load dependencies for a project using `ghc-pkg`.

Synopsis

Documentation

runOrFail :: Text -> IO Text Source #

Run a shell command or exit if it fails.

getDependencyByModule :: FilePath -> [Package] -> IO (Map ModuleName DependencyName) Source #

For the dependencies listed in the specified packages, load `ghc-pkg` and inspect the `exposed-modules` field. Return a map of module to dependency name.