stack-1.3.0: The Haskell Tool Stack

Safe HaskellNone




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

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

data PackageSource Source

Where the package's source is located: local directory or package index


PSLocal LocalPackage 
PSUpstream Version InstallLocation (Map FlagName Bool) [Text] (Maybe GitSHA1)

Upstream packages could be installed in either local or snapshot databases; this is what InstallLocation specifies.

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

All flags for a local package

getLocalPackageViews :: (StackM env m, HasEnvConfig env) => m (Map PackageName (LocalPackageView, GenericPackageDescription)) Source

Parse out the local package views for the current project

parseTargetsFromBuildOpts :: (StackM env m, HasEnvConfig env) => NeedTargets -> BuildOptsCLI -> m (MiniBuildPlan, Map PackageName Version, Map PackageName SimpleTarget) Source

Use the build options and environment to parse targets.

If the local packages views are already known, use parseTargetsFromBuildOptsWith instead.

addUnlistedToBuildCache :: (StackM env m, HasEnvConfig env) => ModTime -> Package -> Path Abs File -> Map FilePath a -> m ([Map FilePath FileCacheInfo], [PackageWarning]) Source

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

getPackageConfig :: (MonadIO m, MonadReader env m, HasEnvConfig env) => BuildOptsCLI -> PackageName -> Bool -> Bool -> m PackageConfig Source

Get PackageConfig for package given its name.