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
Equations
- Lake.instInhabitedFacetConfig = { default := { build := default, getJob? := default } }
@[reducible, inline]
abbrev
Lake.FacetConfig.name
{DataFam : Lake.Name → Type}
{ι : Type}
{name : Lake.Name}
:
Lake.FacetConfig DataFam ι name → Lake.Name
Equations
- x.name = name
Instances For
@[inline]
def
Lake.mkFacetConfig
{ι : Type}
{α : Type}
{Fam : Lake.Name → Type}
{facet : Lake.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}
{α : Type}
{Fam : Lake.Name → Type}
{facet : Lake.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.