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

Data.Prune.Package

Description

Utilities for package.yaml parsing.

Synopsis

Documentation

listFilesRecursive :: FilePath -> IO (Set FilePath) Source #

Recursively list files in a directory, ignoring symlinks.

getSectionDependencyNames :: Section a -> Set DependencyName Source #

Get the dependencies for a thing to compile.

getSectionFiles :: FilePath -> Section a -> IO (Set FilePath) Source #

Get the Haskell source files to compile.

parsePackageYaml :: FilePath -> IO Package Source #

Parse a single package.yaml file.

parseStackYaml :: FilePath -> [Text] -> IO [Package] Source #

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