Safe Haskell | None |
---|---|
Language | Haskell2010 |
Build-specific types.
- data StackBuildException
- = Couldn'tFindPkgId PackageName
- | CompilerVersionMismatch (Maybe (CompilerVersion, Arch)) (CompilerVersion, Arch) GHCVariant 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
- | ConstructPlanExceptions [ConstructPlanException] (Path Abs File)
- | CabalExitedUnsuccessfully ExitCode 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]
- | DuplicateLocalPackageNames [(PackageName, [Path Abs Dir])]
- | SolverGiveUp String
- | SolverMissingCabalInstall
- | SomeTargetsNotBuildable [(PackageName, NamedComponent)]
- data FlagSource
- data UnusedFlags
- data InstallLocation
- data ModTime
- modTime :: UTCTime -> ModTime
- data Installed
- class PackageInstallInfo a where
- piiVersion :: a -> Version
- piiLocation :: a -> InstallLocation
- data Task = Task {}
- 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)
- lpDirtyFiles :: !(Maybe (Set FilePath))
- lpNewBuildCache :: !(Map FilePath FileCacheInfo)
- lpFiles :: !(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
- bcoExtraDBs :: ![Path Abs Dir]
- data Plan = Plan {
- planTasks :: !(Map PackageName Task)
- planFinals :: !(Map PackageName Task)
- planUnregisterLocal :: !(Map GhcPkgId (PackageIdentifier, Maybe 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 {
- boptsTargets :: ![Text]
- boptsLibProfile :: !Bool
- boptsExeProfile :: !Bool
- boptsHaddock :: !Bool
- boptsHaddockDeps :: !(Maybe Bool)
- boptsDryrun :: !Bool
- boptsGhcOptions :: ![Text]
- boptsFlags :: !(Map (Maybe PackageName) (Map FlagName Bool))
- boptsInstallExes :: !Bool
- boptsPreFetch :: !Bool
- boptsBuildSubset :: !BuildSubset
- boptsFileWatch :: !FileWatchOpts
- boptsKeepGoing :: !(Maybe Bool)
- boptsForceDirty :: !Bool
- boptsTests :: !Bool
- boptsTestOpts :: !TestOpts
- boptsBenchmarks :: !Bool
- boptsBenchmarkOpts :: !BenchmarkOpts
- boptsExec :: ![(String, [String])]
- boptsOnlyConfigure :: !Bool
- boptsReconfigure :: !Bool
- boptsCabalVerbose :: !Bool
- data BuildSubset
- defaultBuildOpts :: BuildOpts
- data TaskType
- data TaskConfigOpts = TaskConfigOpts {
- tcoMissing :: !(Set PackageIdentifier)
- tcoOpts :: !(Map PackageIdentifier GhcPkgId -> ConfigureOpts)
- data ConfigCache = ConfigCache {}
- data ConstructPlanException
- = DependencyCycleDetected [PackageName]
- | DependencyPlanFailures Package (Map PackageName (VersionRange, LatestApplicableVersion, BadDependency))
- | UnknownPackage PackageName
- configureOpts :: EnvConfig -> BaseConfigOpts -> Map PackageIdentifier GhcPkgId -> Bool -> Bool -> InstallLocation -> Package -> ConfigureOpts
- data BadDependency
- wantedLocalPackages :: [LocalPackage] -> Set PackageName
- data FileCacheInfo = FileCacheInfo {
- fciModTime :: !ModTime
- fciSize :: !Word64
- fciHash :: !ByteString
- data ConfigureOpts = ConfigureOpts {}
- data PrecompiledCache = 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.
class PackageInstallInfo a where Source
Datatype which tells how which version of a package to install and where to install it into
piiVersion :: a -> Version Source
piiLocation :: a -> InstallLocation Source
A task to perform when building
Task | |
|
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
Configuration for building.
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 | |
|
data ConfigCache Source
Stored on disk to know whether the flags have changed or any files have changed.
ConfigCache | |
|
data ConstructPlanException Source
DependencyCycleDetected [PackageName] | |
DependencyPlanFailures Package (Map PackageName (VersionRange, LatestApplicableVersion, BadDependency)) | |
UnknownPackage PackageName | Recommend adding to extra-deps, give a helpful version number? |
:: EnvConfig | |
-> BaseConfigOpts | |
-> Map PackageIdentifier GhcPkgId | dependencies |
-> Bool | wanted? |
-> Bool | local non-extra-dep? |
-> InstallLocation | |
-> Package | |
-> ConfigureOpts |
Render a BaseConfigOpts
to an actual list of options
data BadDependency Source
Reason why a dependency was not used
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.