stack-3.7.1: The Haskell Tool Stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

Stack.PackageFile

Description

A module which exports all package-level file-gathering logic.

Synopsis

Documentation

getPackageFile :: (HasEnvConfig s, MonadReader s m, MonadThrow m, MonadUnliftIO m) => Package -> Path Abs File -> m PackageComponentFile Source #

Gets all of the modules, files, build files, and data files that constitute the package. This is primarily used for dirtiness checking during build, as well as use by "stack ghci"

stackPackageFileFromCabal :: PackageDescription -> StackPackageFile Source #

For the given contents of a Cabal file, yields the information from it that Stack needs to track files.