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

Data.Prune.Cabal

Synopsis

Documentation

getDependencyNames :: Set DependencyName -> [Dependency] -> Set DependencyName Source #

Get the dependencies for a thing to compile.

getSourceFiles :: FilePath -> Maybe FilePath -> BuildInfo -> IO (Set FilePath) Source #

Get the Haskell source files to compile.

parseCabalFile :: FilePath -> Set DependencyName -> IO Package Source #

Parse a single cabal file.

parseCabalFiles :: (MonadIO m, MonadLogger m) => [FilePath] -> Set DependencyName -> [Text] -> m [Package] Source #

Parse cabal files by file path, filter by explicit package names (if provided), and return the parsed packages.

parseCabalProjectFile :: FilePath -> IO (BuildSystem, [FilePath]) Source #

Parse cabal.project file by file path.