Exit code to return if --no-build
is set and a build is required.
Equations
Instances For
Configuration options for a Lake build.
- oldMode : Bool
Use modification times for trace checking.
- trustHash : Bool
Whether to trust
.hash
files. - noBuild : Bool
Early exit if a target has to be rebuilt.
- verbosity : Lake.Verbosity
Verbosity level (
-q
,-v
, or neither). - failLv : Lake.LogLevel
Fail the top-level build if entries of at least this level have been logged.
Unlike some build systems, this does NOT convert such log entries to errors, and it does not abort jobs when warnings are logged (i.e., dependent jobs will still continue unimpeded).
- outLv : Lake.LogLevel
The minimum log level for an log entry to be reported.
- out : Lake.OutStream
The stream to which Lake reports build progress. By default, Lake uses
stderr
. - ansiMode : Lake.AnsiMode
Whether to use ANSI escape codes in build output.
Instances For
Whether the build should show progress information.
Verbosity.quiet
hides progress and, for a noBuild
,
Verbosity.verbose
shows progress.
Equations
Instances For
Information on what this job did.
- unknown : Lake.JobAction
No information about this job's action is available.
- replay : Lake.JobAction
Tried to replay a cached build action (set by
buildFileUnlessUpToDate
) - fetch : Lake.JobAction
Tried to fetch a build from a store (can be set by
buildUnlessUpToDate?
) - build : Lake.JobAction
Tried to perform a build action (set by
buildUnlessUpToDate?
)
Instances For
Equations
- Lake.instInhabitedJobAction = { default := Lake.JobAction.unknown }
Equations
- Lake.instReprJobAction = { reprPrec := Lake.reprJobAction✝ }
Equations
- Lake.instDecidableEqJobAction x✝ y✝ = if h : x✝.toCtorIdx = y✝.toCtorIdx then isTrue ⋯ else isFalse ⋯
Equations
- Lake.instOrdJobAction = { compare := Lake.ordJobAction✝ }
Instances For
Mutable state of a Lake job.
- log : Lake.Log
The job's log.
- action : Lake.JobAction
Tracks whether this job performed any significant build action.
- trace : Lake.BuildTrace
Current trace of a build job.
Instances For
Equations
- Lake.instInhabitedJobState = { default := { log := default, action := default, trace := default } }
The result of a Lake job.
Equations
Instances For
Equations
- Lake.instInhabitedJob = { default := { task := default, caption := default, optional := default } }
A Lake job with an opaque value in Type
.
Equations
Instances For
A Lake context with a build configuration and additional build data.
- leanTrace : Lake.BuildTrace
- registeredJobs : IO.Ref (Array Lake.OpaqueJob)
Instances For
A monad equipped with a Lake build context.
Equations
Instances For
Equations
Instances For
Equations
- Lake.getLeanTrace = (fun (x : Lake.BuildContext) => x.leanTrace) <$> Lake.getBuildContext
Instances For
Equations
- Lake.getBuildConfig = (fun (x : Lake.BuildContext) => x.toBuildConfig) <$> Lake.getBuildContext
Instances For
Equations
- Lake.getIsOldMode = (fun (x : Lake.BuildConfig) => x.oldMode) <$> Lake.getBuildConfig
Instances For
Equations
- Lake.getTrustHash = (fun (x : Lake.BuildConfig) => x.trustHash) <$> Lake.getBuildConfig
Instances For
Equations
- Lake.getNoBuild = (fun (x : Lake.BuildConfig) => x.noBuild) <$> Lake.getBuildConfig
Instances For
Equations
- Lake.getVerbosity = (fun (x : Lake.BuildConfig) => x.verbosity) <$> Lake.getBuildConfig
Instances For
Equations
- Lake.getIsVerbose = (fun (x : Lake.Verbosity) => x == Lake.Verbosity.verbose) <$> Lake.getVerbosity
Instances For
Equations
- Lake.getIsQuiet = (fun (x : Lake.Verbosity) => x == Lake.Verbosity.quiet) <$> Lake.getVerbosity
Instances For
The internal core monad of Lake builds. Not intended for user use.
Equations
Instances For
Logs a build step with message
.
Deprecated: Build steps are now managed by a top-level build monitor.
As a result, this no longer functions the way it used to. It now just logs the
message
via logVerbose
.
Equations
- Lake.logStep message = Lake.logVerbose message