stack-1.6.5: The Haskell Tool Stack

Safe HaskellNone




loadSourceMap :: HasEnvConfig env => NeedTargets -> BuildOptsCLI -> RIO env ([LocalPackage], SourceMap) Source #

Like loadSourceMapFull, but doesn't return values that aren't as commonly needed.

loadSourceMapFull :: HasEnvConfig env => NeedTargets -> BuildOptsCLI -> RIO env (Map PackageName Target, LoadedSnapshot, [LocalPackage], Set PackageName, SourceMap) Source #

Given the build commandline options, does the following:

  • Parses the build targets.
  • Loads the LoadedSnapshot from the resolver, with extra-deps shadowing any packages that should be built locally.
  • Loads up the LocalPackage info.
  • Builds a SourceMap, which contains info for all the packages that will be involved in the build.

getLocalFlags :: BuildConfig -> BuildOptsCLI -> PackageName -> Map FlagName Bool Source #

All flags for a local package.

getGhcOptions :: BuildConfig -> BuildOptsCLI -> PackageName -> Bool -> Bool -> [Text] Source #

Get the configured options to pass from GHC, based on the build configuration and commandline.

addUnlistedToBuildCache :: HasEnvConfig env => ModTime -> Package -> Path Abs File -> Set NamedComponent -> Map NamedComponent (Map FilePath a) -> RIO env (Map NamedComponent [Map FilePath FileCacheInfo], [PackageWarning]) Source #

Returns entries to add to the build cache for any newly found unlisted modules