Safe Haskell | None |
---|---|
Language | Haskell2010 |
Build-specific types.
- data StackBuildException
- = Couldn'tFindPkgId PackageName
- | CompilerVersionMismatch (Maybe (CompilerVersion CVActual, Arch)) (CompilerVersion CVWanted, 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)
- | TargetParseException [Text]
- | SolverGiveUp String
- | SolverMissingCabalInstall
- | SomeTargetsNotBuildable [(PackageName, NamedComponent)]
- | TestSuiteExeMissing Bool String String String
- | CabalCopyFailed Bool String
- | LocalPackagesPresent [PackageIdentifier]
- data FlagSource
- data UnusedFlags
- data InstallLocation
- data ModTime
- modTime :: UTCTime -> ModTime
- data Installed
- piiVersion :: PackageSource -> Version
- piiLocation :: PackageSource -> InstallLocation
- data Task = Task {}
- taskIsTarget :: Task -> Bool
- taskLocation :: Task -> InstallLocation
- data LocalPackage = LocalPackage {
- lpPackage :: !Package
- lpComponents :: !(Set NamedComponent)
- lpUnbuildable :: !(Set NamedComponent)
- lpWanted :: !Bool
- lpTestDeps :: !(Map PackageName VersionRange)
- lpBenchDeps :: !(Map PackageName VersionRange)
- lpTestBench :: !(Maybe Package)
- lpDir :: !(Path Abs Dir)
- lpCabalFile :: !(Path Abs File)
- lpForceDirty :: !Bool
- lpDirtyFiles :: !(Maybe (Set FilePath))
- lpNewBuildCache :: !(Map FilePath FileCacheInfo)
- lpFiles :: !(Set (Path Abs File))
- lpLocation :: !(PackageLocation FilePath)
- 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
- 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)
- boptsForceDirty :: !Bool
- boptsTests :: !Bool
- boptsTestOpts :: !TestOpts
- boptsBenchmarks :: !Bool
- boptsBenchmarkOpts :: !BenchmarkOpts
- boptsReconfigure :: !Bool
- boptsCabalVerbose :: !Bool
- boptsSplitObjs :: !Bool
- boptsSkipComponents :: ![Text]
- data BuildSubset
- defaultBuildOpts :: BuildOpts
- data TaskType
- ttPackageLocation :: TaskType -> PackageLocationIndex FilePath
- data TaskConfigOpts = TaskConfigOpts {
- tcoMissing :: !(Set PackageIdentifier)
- tcoOpts :: !(Map PackageIdentifier GhcPkgId -> ConfigureOpts)
- newtype BuildCache = BuildCache {}
- buildCacheVC :: VersionConfig BuildCache
- data ConfigCache = ConfigCache {}
- configCacheVC :: VersionConfig ConfigCache
- configureOpts :: EnvConfig -> BaseConfigOpts -> Map PackageIdentifier GhcPkgId -> Bool -> InstallLocation -> Package -> ConfigureOpts
- data CachePkgSrc
- toCachePkgSrc :: PackageSource -> CachePkgSrc
- isStackOpt :: Text -> Bool
- wantedLocalPackages :: [LocalPackage] -> Set PackageName
- data FileCacheInfo = FileCacheInfo {
- fciModTime :: !ModTime
- fciSize :: !Word64
- fciHash :: !ByteString
- data ConfigureOpts = ConfigureOpts {}
- data PrecompiledCache = PrecompiledCache {}
- precompiledCacheVC :: VersionConfig PrecompiledCache
Documentation
data StackBuildException Source #
data FlagSource Source #
data UnusedFlags Source #
data InstallLocation Source #
A location to install a package into, either snapshot or local
Used for storage and comparison.
piiVersion :: PackageSource -> Version Source #
A task to perform when building
Task | |
|
taskIsTarget :: Task -> Bool Source #
taskLocation :: Task -> InstallLocation Source #
data LocalPackage Source #
Information on a locally available package of source code
LocalPackage | |
|
data BaseConfigOpts Source #
Basic information used to calculate what the configure options are
BaseConfigOpts | |
|
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 | |
|
data FileWatchOpts Source #
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 |
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 | |
|
newtype BuildCache Source #
Stored on disk to know whether the files have changed.
BuildCache | |
|
data ConfigCache Source #
Stored on disk to know whether the flags have changed.
ConfigCache | |
|
:: EnvConfig | |
-> BaseConfigOpts | |
-> Map PackageIdentifier GhcPkgId | dependencies |
-> Bool | local non-extra-dep? |
-> InstallLocation | |
-> Package | |
-> ConfigureOpts |
Render a BaseConfigOpts
to an actual list of options
data CachePkgSrc Source #
isStackOpt :: Text -> Bool Source #
wantedLocalPackages :: [LocalPackage] -> Set PackageName Source #
Get set of wanted package names from locals.
data FileCacheInfo Source #
FileCacheInfo | |
|
data PrecompiledCache Source #
Information on a compiled package: the library conf file (if relevant), and all of the executable paths.