Exit code to return if --no-build
is set and a build is required.
Equations
Configuration options for a Lake build.
- oldMode : Bool
- trustHash : Bool
- noBuild : Bool
Early exit if a target has to be rebuilt.
- verbosity : Lake.Verbosity
- 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).
- 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.
The minimum log level for an log entry to be reported.
Equations
- cfg.outLv = cfg.verbosity.minLogLv
Whether the build should show progress information.
Verbosity.quiet
hides progress and, for a noBuild
,
Verbosity.verbose
shows progress.
Equations
A Lake job with an opaque value type in Type
.
Equations
A Lake context with a build configuration and additional build data.
- oldMode : Bool
- trustHash : Bool
- noBuild : Bool
- verbosity : Lake.Verbosity
- failLv : Lake.LogLevel
- out : Lake.OutStream
- ansiMode : Lake.AnsiMode
- opaqueWs : Lake.OpaqueWorkspace
- leanTrace : Lake.BuildTrace
- registeredJobs : IO.Ref (Array Lake.OpaqueJob)
A monad equipped with a Lake build context.
Equations
Equations
- Lake.getBuildContext = readThe Lake.BuildContext
Equations
- Lake.getLeanTrace = (fun (x : Lake.BuildContext) => x.leanTrace) <$> Lake.getBuildContext
Equations
- Lake.getBuildConfig = (fun (x : Lake.BuildContext) => x.toBuildConfig) <$> Lake.getBuildContext
Equations
- Lake.getIsOldMode = (fun (x : Lake.BuildConfig) => x.oldMode) <$> Lake.getBuildConfig
Equations
- Lake.getTrustHash = (fun (x : Lake.BuildConfig) => x.trustHash) <$> Lake.getBuildConfig
Equations
- Lake.getNoBuild = (fun (x : Lake.BuildConfig) => x.noBuild) <$> Lake.getBuildConfig
Equations
- Lake.getVerbosity = (fun (x : Lake.BuildConfig) => x.verbosity) <$> Lake.getBuildConfig
Equations
- Lake.getIsVerbose = (fun (x : Lake.Verbosity) => x == Lake.Verbosity.verbose) <$> Lake.getVerbosity
Equations
- Lake.getIsQuiet = (fun (x : Lake.Verbosity) => x == Lake.Verbosity.quiet) <$> Lake.getVerbosity
The internal core monad of Lake builds. Not intended for user use.
Equations
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