Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data PreBuildComponentInputs = PreBuildComponentInputs {}
- buildVerbosity :: PreBuildComponentInputs -> Verbosity
- buildComponent :: PreBuildComponentInputs -> Component
- buildIsLib :: PreBuildComponentInputs -> Bool
- buildCLBI :: PreBuildComponentInputs -> ComponentLocalBuildInfo
- buildBI :: PreBuildComponentInputs -> BuildInfo
- buildCompiler :: PreBuildComponentInputs -> Compiler
- data BuildingWhat
- data LocalBuildInfo where
- NewLocalBuildInfo { }
- pattern LocalBuildInfo :: ConfigFlags -> FlagAssignment -> ComponentRequestedSpec -> [String] -> InstallDirTemplates -> Compiler -> Platform -> Maybe (SymbolicPath Pkg File) -> Graph ComponentLocalBuildInfo -> Map ComponentName [ComponentLocalBuildInfo] -> Map (PackageName, ComponentName) PromisedComponent -> InstalledPackageIndex -> PackageDescription -> ProgramDb -> PackageDBStack -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> ProfDetailLevel -> ProfDetailLevel -> OptimisationLevel -> DebugInfoLevel -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> [UnitId] -> Bool -> LocalBuildInfo
- data TargetInfo = TargetInfo {}
- buildingWhatCommonFlags :: BuildingWhat -> CommonSetupFlags
- buildingWhatVerbosity :: BuildingWhat -> Verbosity
- buildingWhatWorkingDir :: BuildingWhat -> Maybe (SymbolicPath CWD (Dir Pkg))
- buildingWhatDistPref :: BuildingWhat -> SymbolicPath Pkg (Dir Dist)
Inputs of actions for building components
data PreBuildComponentInputs Source #
The information required for a build computation which is available right before building each component, i.e. the pre-build component inputs.
PreBuildComponentInputs | |
|
Queries over the component being built
buildVerbosity :: PreBuildComponentInputs -> Verbosity Source #
Get the
from the context the component being built is in.Verbosity
buildComponent :: PreBuildComponentInputs -> Component Source #
Get the
being built.Component
buildIsLib :: PreBuildComponentInputs -> Bool Source #
Is the
being built a Component
?Library
buildCLBI :: PreBuildComponentInputs -> ComponentLocalBuildInfo Source #
Get the
for the component being built.ComponentLocalBuildInfo
buildBI :: PreBuildComponentInputs -> BuildInfo Source #
Get the
of the component being built.BuildInfo
buildCompiler :: PreBuildComponentInputs -> Compiler Source #
Get the
being used to build the component.Compiler
Re-exports
data BuildingWhat Source #
What kind of build phase are we doing/hooking into?
Is this a normal build, or is it perhaps for running an interactive session or Haddock?
BuildNormal BuildFlags | A normal build. |
BuildRepl ReplFlags | Build steps for an interactive session. |
BuildHaddock HaddockFlags | Build steps for generating documentation. |
BuildHscolour HscolourFlags | Build steps for Hscolour. |
Instances
data LocalBuildInfo Source #
Data cached after configuration step. See also
ConfigFlags
.
NewLocalBuildInfo | |
|
pattern LocalBuildInfo :: ConfigFlags -> FlagAssignment -> ComponentRequestedSpec -> [String] -> InstallDirTemplates -> Compiler -> Platform -> Maybe (SymbolicPath Pkg File) -> Graph ComponentLocalBuildInfo -> Map ComponentName [ComponentLocalBuildInfo] -> Map (PackageName, ComponentName) PromisedComponent -> InstalledPackageIndex -> PackageDescription -> ProgramDb -> PackageDBStack -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> ProfDetailLevel -> ProfDetailLevel -> OptimisationLevel -> DebugInfoLevel -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> [UnitId] -> Bool -> LocalBuildInfo | This pattern synonym is for backwards compatibility, to adapt
to |
Instances
data TargetInfo Source #
The TargetInfo
contains all the information necessary to build a
specific target (e.g., componentmodulefile) in a package. In
principle, one can get the Component
from a
ComponentLocalBuildInfo
and LocalBuildInfo
, but it is much more
convenient to have the component in hand.
Instances
buildingWhatWorkingDir :: BuildingWhat -> Maybe (SymbolicPath CWD (Dir Pkg)) Source #
buildingWhatDistPref :: BuildingWhat -> SymbolicPath Pkg (Dir Dist) Source #