Safe Haskell | None |
---|---|
Language | Haskell2010 |
Build-specific types.
Synopsis
- data StackBuildException
- = Couldn'tFindPkgId PackageName
- | CompilerVersionMismatch (Maybe (ActualCompiler, Arch)) (WantedCompiler, Arch) GHCVariant CompilerBuild VersionCheck (Maybe (Path Abs File)) Text
- | Couldn'tParseTargets [Text]
- | UnknownTargets (Set PackageName) (Map PackageName Version) (Path Abs File)
- | TestSuiteFailure PackageIdentifier (Map Text (Maybe ExitCode)) (Maybe (Path Abs File)) ByteString
- | TestSuiteTypeUnsupported TestSuiteInterface
- | ConstructPlanFailed String
- | CabalExitedUnsuccessfully ExitCode PackageIdentifier (Path Abs File) [String] (Maybe (Path Abs File)) [Text]
- | SetupHsBuildFailure ExitCode (Maybe PackageIdentifier) (Path Abs File) [String] (Maybe (Path Abs File)) [Text]
- | ExecutionFailure [SomeException]
- | LocalPackageDoesn'tMatchTarget PackageName Version Version
- | NoSetupHsFound (Path Abs Dir)
- | InvalidFlagSpecification (Set UnusedFlags)
- | InvalidGhcOptionsSpecification [PackageName]
- | TargetParseException [Text]
- | SomeTargetsNotBuildable [(PackageName, NamedComponent)]
- | TestSuiteExeMissing Bool String String String
- | CabalCopyFailed Bool String
- | LocalPackagesPresent [PackageIdentifier]
- | CouldNotLockDistDir !(Path Abs File)
- data FlagSource
- data UnusedFlags
- data InstallLocation
- data Installed
- psVersion :: PackageSource -> Version
- data Task = Task {}
- taskIsTarget :: Task -> Bool
- taskLocation :: Task -> InstallLocation
- taskTargetIsMutable :: Task -> IsMutable
- data LocalPackage = LocalPackage {
- lpPackage :: !Package
- lpComponents :: !(Set NamedComponent)
- lpUnbuildable :: !(Set NamedComponent)
- lpWanted :: !Bool
- lpTestDeps :: !(Map PackageName VersionRange)
- lpBenchDeps :: !(Map PackageName VersionRange)
- lpTestBench :: !(Maybe Package)
- lpCabalFile :: !(Path Abs File)
- lpBuildHaddocks :: !Bool
- lpForceDirty :: !Bool
- lpDirtyFiles :: !(MemoizedWith EnvConfig (Maybe (Set FilePath)))
- lpNewBuildCaches :: !(MemoizedWith EnvConfig (Map NamedComponent (Map FilePath FileCacheInfo)))
- lpComponentFiles :: !(MemoizedWith EnvConfig (Map NamedComponent (Set (Path Abs File))))
- data BaseConfigOpts = BaseConfigOpts {
- bcoSnapDB :: !(Path Abs Dir)
- bcoLocalDB :: !(Path Abs Dir)
- bcoSnapInstallRoot :: !(Path Abs Dir)
- bcoLocalInstallRoot :: !(Path Abs Dir)
- bcoBuildOpts :: !BuildOpts
- bcoBuildOptsCLI :: !BuildOptsCLI
- bcoExtraDBs :: ![Path Abs Dir]
- data Plan = Plan {
- planTasks :: !(Map PackageName Task)
- planFinals :: !(Map PackageName Task)
- planUnregisterLocal :: !(Map GhcPkgId (PackageIdentifier, Text))
- planInstallExes :: !(Map Text InstallLocation)
- data TestOpts = TestOpts {
- toRerunTests :: !Bool
- toAdditionalArgs :: ![String]
- toCoverage :: !Bool
- toDisableRun :: !Bool
- toMaximumTimeSeconds :: !(Maybe Int)
- data BenchmarkOpts = BenchmarkOpts {
- beoAdditionalArgs :: !(Maybe String)
- beoDisableRun :: !Bool
- data FileWatchOpts
- data BuildOpts = BuildOpts {
- boptsLibProfile :: !Bool
- boptsExeProfile :: !Bool
- boptsLibStrip :: !Bool
- boptsExeStrip :: !Bool
- boptsHaddock :: !Bool
- boptsHaddockOpts :: !HaddockOpts
- boptsOpenHaddocks :: !Bool
- boptsHaddockDeps :: !(Maybe Bool)
- boptsHaddockInternal :: !Bool
- boptsHaddockHyperlinkSource :: !Bool
- boptsInstallExes :: !Bool
- boptsInstallCompilerTool :: !Bool
- boptsPreFetch :: !Bool
- boptsKeepGoing :: !(Maybe Bool)
- boptsKeepTmpFiles :: !Bool
- boptsForceDirty :: !Bool
- boptsTests :: !Bool
- boptsTestOpts :: !TestOpts
- boptsBenchmarks :: !Bool
- boptsBenchmarkOpts :: !BenchmarkOpts
- boptsReconfigure :: !Bool
- boptsCabalVerbose :: !Bool
- boptsSplitObjs :: !Bool
- boptsSkipComponents :: ![Text]
- boptsInterleavedOutput :: !Bool
- boptsDdumpDir :: !(Maybe Text)
- data BuildSubset
- defaultBuildOpts :: BuildOpts
- data TaskType
- data IsMutable
- installLocationIsMutable :: InstallLocation -> IsMutable
- data TaskConfigOpts = TaskConfigOpts {
- tcoMissing :: !(Set PackageIdentifier)
- tcoOpts :: !(Map PackageIdentifier GhcPkgId -> ConfigureOpts)
- newtype BuildCache = BuildCache {}
- data ConfigCache = ConfigCache {}
- configureOpts :: EnvConfig -> BaseConfigOpts -> Map PackageIdentifier GhcPkgId -> Bool -> IsMutable -> Package -> ConfigureOpts
- data CachePkgSrc
- toCachePkgSrc :: PackageSource -> CachePkgSrc
- isStackOpt :: Text -> Bool
- wantedLocalPackages :: [LocalPackage] -> Set PackageName
- data FileCacheInfo = FileCacheInfo {}
- data ConfigureOpts = ConfigureOpts {}
- data PrecompiledCache base = PrecompiledCache {}
Documentation
data StackBuildException Source #
Instances
Show StackBuildException Source # | |
Defined in Stack.Types.Build showsPrec :: Int -> StackBuildException -> ShowS # show :: StackBuildException -> String # showList :: [StackBuildException] -> ShowS # | |
Exception StackBuildException Source # | |
Defined in Stack.Types.Build |
data FlagSource Source #
Instances
Eq FlagSource Source # | |
Defined in Stack.Types.Build (==) :: FlagSource -> FlagSource -> Bool # (/=) :: FlagSource -> FlagSource -> Bool # | |
Ord FlagSource Source # | |
Defined in Stack.Types.Build compare :: FlagSource -> FlagSource -> Ordering # (<) :: FlagSource -> FlagSource -> Bool # (<=) :: FlagSource -> FlagSource -> Bool # (>) :: FlagSource -> FlagSource -> Bool # (>=) :: FlagSource -> FlagSource -> Bool # max :: FlagSource -> FlagSource -> FlagSource # min :: FlagSource -> FlagSource -> FlagSource # | |
Show FlagSource Source # | |
Defined in Stack.Types.Build showsPrec :: Int -> FlagSource -> ShowS # show :: FlagSource -> String # showList :: [FlagSource] -> ShowS # |
data UnusedFlags Source #
UFNoPackage FlagSource PackageName | |
UFFlagsNotDefined FlagSource PackageName (Set FlagName) (Set FlagName) | |
UFSnapshot PackageName |
Instances
Eq UnusedFlags Source # | |
Defined in Stack.Types.Build (==) :: UnusedFlags -> UnusedFlags -> Bool # (/=) :: UnusedFlags -> UnusedFlags -> Bool # | |
Ord UnusedFlags Source # | |
Defined in Stack.Types.Build compare :: UnusedFlags -> UnusedFlags -> Ordering # (<) :: UnusedFlags -> UnusedFlags -> Bool # (<=) :: UnusedFlags -> UnusedFlags -> Bool # (>) :: UnusedFlags -> UnusedFlags -> Bool # (>=) :: UnusedFlags -> UnusedFlags -> Bool # max :: UnusedFlags -> UnusedFlags -> UnusedFlags # min :: UnusedFlags -> UnusedFlags -> UnusedFlags # | |
Show UnusedFlags Source # | |
Defined in Stack.Types.Build showsPrec :: Int -> UnusedFlags -> ShowS # show :: UnusedFlags -> String # showList :: [UnusedFlags] -> ShowS # |
data InstallLocation Source #
A location to install a package into, either snapshot or local
Instances
Eq InstallLocation Source # | |
Defined in Stack.Types.Package (==) :: InstallLocation -> InstallLocation -> Bool # (/=) :: InstallLocation -> InstallLocation -> Bool # | |
Show InstallLocation Source # | |
Defined in Stack.Types.Package showsPrec :: Int -> InstallLocation -> ShowS # show :: InstallLocation -> String # showList :: [InstallLocation] -> ShowS # | |
Semigroup InstallLocation Source # | |
Defined in Stack.Types.Package (<>) :: InstallLocation -> InstallLocation -> InstallLocation # sconcat :: NonEmpty InstallLocation -> InstallLocation # stimes :: Integral b => b -> InstallLocation -> InstallLocation # | |
Monoid InstallLocation Source # | |
Defined in Stack.Types.Package mappend :: InstallLocation -> InstallLocation -> InstallLocation # mconcat :: [InstallLocation] -> InstallLocation # |
psVersion :: PackageSource -> Version Source #
A task to perform when building
Task | |
|
taskIsTarget :: Task -> Bool Source #
taskLocation :: Task -> InstallLocation Source #
taskTargetIsMutable :: Task -> IsMutable Source #
data LocalPackage Source #
Information on a locally available package of source code
LocalPackage | |
|
Instances
Show LocalPackage Source # | |
Defined in Stack.Types.Package showsPrec :: Int -> LocalPackage -> ShowS # show :: LocalPackage -> String # showList :: [LocalPackage] -> ShowS # |
data BaseConfigOpts Source #
Basic information used to calculate what the configure options are
BaseConfigOpts | |
|
Instances
Show BaseConfigOpts Source # | |
Defined in Stack.Types.Build showsPrec :: Int -> BaseConfigOpts -> ShowS # show :: BaseConfigOpts -> String # showList :: [BaseConfigOpts] -> ShowS # |
A complete plan of what needs to be built and how to do it
Plan | |
|
Options for the FinalAction
DoTests
TestOpts | |
|
data BenchmarkOpts Source #
Options for the FinalAction
DoBenchmarks
BenchmarkOpts | |
|
Instances
Eq BenchmarkOpts Source # | |
Defined in Stack.Types.Config.Build (==) :: BenchmarkOpts -> BenchmarkOpts -> Bool # (/=) :: BenchmarkOpts -> BenchmarkOpts -> Bool # | |
Show BenchmarkOpts Source # | |
Defined in Stack.Types.Config.Build showsPrec :: Int -> BenchmarkOpts -> ShowS # show :: BenchmarkOpts -> String # showList :: [BenchmarkOpts] -> ShowS # |
data FileWatchOpts Source #
Instances
Eq FileWatchOpts Source # | |
Defined in Stack.Types.Config.Build (==) :: FileWatchOpts -> FileWatchOpts -> Bool # (/=) :: FileWatchOpts -> FileWatchOpts -> Bool # | |
Show FileWatchOpts Source # | |
Defined in Stack.Types.Config.Build showsPrec :: Int -> FileWatchOpts -> ShowS # show :: FileWatchOpts -> String # showList :: [FileWatchOpts] -> ShowS # |
Build options that is interpreted by the build command. This is built up from BuildOptsCLI and BuildOptsMonoid
BuildOpts | |
|
data BuildSubset Source #
Which subset of packages to build
BSAll | |
BSOnlySnapshot | Only install packages in the snapshot database, skipping packages intended for the local database. |
BSOnlyDependencies | |
BSOnlyLocals | Refuse to build anything in the snapshot database, see https://github.com/commercialhaskell/stack/issues/5272 |
Instances
Eq BuildSubset Source # | |
Defined in Stack.Types.Config.Build (==) :: BuildSubset -> BuildSubset -> Bool # (/=) :: BuildSubset -> BuildSubset -> Bool # | |
Show BuildSubset Source # | |
Defined in Stack.Types.Config.Build showsPrec :: Int -> BuildSubset -> ShowS # show :: BuildSubset -> String # showList :: [BuildSubset] -> ShowS # |
The type of a task, either building local code or something from the package index (upstream)
data TaskConfigOpts Source #
Given the IDs of any missing packages, produce the configure options
TaskConfigOpts | |
|
Instances
Show TaskConfigOpts Source # | |
Defined in Stack.Types.Build showsPrec :: Int -> TaskConfigOpts -> ShowS # show :: TaskConfigOpts -> String # showList :: [TaskConfigOpts] -> ShowS # |
newtype BuildCache Source #
Stored on disk to know whether the files have changed.
BuildCache | |
|
Instances
data ConfigCache Source #
Stored on disk to know whether the flags have changed.
ConfigCache | |
|
Instances
:: EnvConfig | |
-> BaseConfigOpts | |
-> Map PackageIdentifier GhcPkgId | dependencies |
-> Bool | local non-extra-dep? |
-> IsMutable | |
-> Package | |
-> ConfigureOpts |
Render a BaseConfigOpts
to an actual list of options
data CachePkgSrc Source #
Instances
isStackOpt :: Text -> Bool Source #
wantedLocalPackages :: [LocalPackage] -> Set PackageName Source #
Get set of wanted package names from locals.
data FileCacheInfo Source #
Instances
data ConfigureOpts Source #
Configure options to be sent to Setup.hs configure
Instances
data PrecompiledCache base Source #
Information on a compiled package: the library conf file (if relevant), the sublibraries (if present) and all of the executable paths.