Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Resolving a build plan for a set of packages in a given Stackage snapshot.
Synopsis
- data BuildPlanException
- data BuildPlanCheck
- checkSnapBuildPlan :: (HasConfig env, HasGHCVariant env) => [ResolvedPath Dir] -> Maybe (Map PackageName (Map FlagName Bool)) -> SnapshotCandidate env -> RIO env BuildPlanCheck
- data DepError = DepError {
- deVersion :: !(Maybe Version)
- deNeededBy :: !(Map PackageName VersionRange)
- type DepErrors = Map PackageName DepError
- removeSrcPkgDefaultFlags :: [GenericPackageDescription] -> Map PackageName (Map FlagName Bool) -> Map PackageName (Map FlagName Bool)
- selectBestSnapshot :: (HasConfig env, HasGHCVariant env) => [ResolvedPath Dir] -> NonEmpty SnapName -> RIO env (SnapshotCandidate env, RawSnapshotLocation, BuildPlanCheck)
- showItems :: [String] -> Text
Documentation
data BuildPlanException Source #
Type representing exceptions thrown by functions exported by the Stack.BuildPlan module.
Instances
Exception BuildPlanException Source # | |
Defined in Stack.BuildPlan | |
Show BuildPlanException Source # | |
Defined in Stack.BuildPlan showsPrec :: Int -> BuildPlanException -> ShowS # show :: BuildPlanException -> String # showList :: [BuildPlanException] -> ShowS # |
data BuildPlanCheck Source #
Instances
Show BuildPlanCheck Source # | |
Defined in Stack.BuildPlan showsPrec :: Int -> BuildPlanCheck -> ShowS # show :: BuildPlanCheck -> String # showList :: [BuildPlanCheck] -> ShowS # |
checkSnapBuildPlan :: (HasConfig env, HasGHCVariant env) => [ResolvedPath Dir] -> Maybe (Map PackageName (Map FlagName Bool)) -> SnapshotCandidate env -> RIO env BuildPlanCheck Source #
Check a set of GenericPackageDescription
s and a set of flags against a
given snapshot. Returns how well the snapshot satisfies the dependencies of
the packages.
DepError | |
|
removeSrcPkgDefaultFlags :: [GenericPackageDescription] -> Map PackageName (Map FlagName Bool) -> Map PackageName (Map FlagName Bool) Source #
selectBestSnapshot :: (HasConfig env, HasGHCVariant env) => [ResolvedPath Dir] -> NonEmpty SnapName -> RIO env (SnapshotCandidate env, RawSnapshotLocation, BuildPlanCheck) Source #
Find a snapshot and set of flags that is compatible with and matches as
best as possible with the given GenericPackageDescription
s.