stack-1.1.2: The Haskell Tool Stack

Safe HaskellNone




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 :: (MonadThrow m, MonadIO m, MonadReader env m, HasEnvConfig env, MonadLogger m) => m (Map PackageName (LocalPackageView, GenericPackageDescription)) Source

Parse out the local package views for the current project

parseTargetsFromBuildOpts :: (MonadIO m, MonadMask m, MonadReader env m, MonadLogger m, HasEnvConfig env) => NeedTargets -> BuildOptsCLI -> m (MiniBuildPlan, Map PackageName Version, Map PackageName SimpleTarget) Source

Use the build options and environment to parse targets.

addUnlistedToBuildCache :: (MonadIO m, MonadReader env m, MonadMask m, MonadLogger 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.