A facet's declarative configuration.
- build : ι → Lake.FetchM (DataFam name)
The facet's build (function).
- getJob? : Option (DataFam name → Lake.BuildJob Unit)
Does this facet produce an associated asynchronous job?
Instances For
instance
Lake.instInhabitedFacetConfig
{a✝ : Lean.Name → Type}
{a✝¹ : Type}
{a✝² : Lean.Name}
:
Inhabited (Lake.FacetConfig a✝ a✝¹ a✝²)
Equations
- Lake.instInhabitedFacetConfig = { default := { build := default, getJob? := default } }
@[reducible, inline]
abbrev
Lake.FacetConfig.name
{DataFam : Lean.Name → Type}
{ι : Type}
{name : Lean.Name}
:
Lake.FacetConfig DataFam ι name → Lean.Name
Equations
- x✝.name = name
Instances For
@[inline]
def
Lake.mkFacetConfig
{ι α : Type}
{Fam : Lean.Name → Type}
{facet : Lean.Name}
(build : ι → Lake.FetchM α)
[h : Lake.FamilyOut Fam facet α]
:
Lake.FacetConfig Fam ι facet
A smart constructor for facet configurations that are not known to generate targets.
Equations
- Lake.mkFacetConfig build = { build := cast ⋯ build, getJob? := none }
Instances For
@[inline]
def
Lake.mkFacetJobConfig
{ι α : Type}
{Fam : Lean.Name → Type}
{facet : Lean.Name}
(build : ι → Lake.FetchM (Lake.BuildJob α))
[h : Lake.FamilyOut Fam facet (Lake.BuildJob α)]
:
Lake.FacetConfig Fam ι facet
A smart constructor for facet configurations that generate jobs for the CLI.
Equations
- Lake.mkFacetJobConfig build = { build := cast ⋯ build, getJob? := some fun (data : Fam facet) => discard (Lake.ofFamily data) }
Instances For
@[reducible, inline]
A module facet's declarative configuration.
Instances For
@[reducible, inline]
A module facet declaration from a configuration file.
Instances For
@[reducible, inline]
A package facet's declarative configuration.
Instances For
@[reducible, inline]
A package facet declaration from a configuration file.
Instances For
@[reducible, inline]
A library facet's declarative configuration.
Instances For
@[reducible, inline]
A library facet declaration from a configuration file.