- build : Lake.NPackage pkgName → Lake.IndexBuildM (Lake.CustomData (pkgName, name))
The target's build function.
- getJob : Lake.CustomData (pkgName, name) → Lake.BuildJob Unit
The target's resulting build job.
A custom target's declarative configuration.
Instances For
Equations
- Lake.instInhabitedTargetConfig = { default := { build := default, getJob := default } }
@[inline]
def
Lake.mkTargetJobConfig
{pkgName : Lake.Name}
{α : Type}
{name : Lake.Name}
(build : Lake.NPackage pkgName → Lake.IndexBuildM (Lake.BuildJob α))
[h : Lake.FamilyOut Lake.CustomData (pkgName, name) (Lake.BuildJob α)]
:
Lake.TargetConfig pkgName name
A smart constructor for target configurations that generate CLI targets.
Equations
- One or more equations did not get rendered due to their size.
Instances For
- pkg : Lake.Name
- name : Lake.Name
- config : Lake.TargetConfig s.pkg s.name
A dependently typed configuration based on its registered package and name.
Instances For
instance
Lake.OpaqueTargetConfig.instCoeTargetConfigOpaqueTargetConfig
{pkgName : Lake.Name}
{name : Lake.Name}
:
Coe (Lake.TargetConfig pkgName name) (Lake.OpaqueTargetConfig pkgName name)
Equations
- Lake.OpaqueTargetConfig.instCoeTargetConfigOpaqueTargetConfig = { coe := Lake.OpaqueTargetConfig.mk }
unsafe def
Lake.OpaqueTargetConfig.unsafeMk
{pkgName : Lake.Name}
{name : Lake.Name}
:
Lake.TargetConfig pkgName name → Lake.OpaqueTargetConfig pkgName name
Equations
- Lake.OpaqueTargetConfig.unsafeMk = unsafeCast
Instances For
@[implemented_by Lake.OpaqueTargetConfig.unsafeMk]
opaque
Lake.OpaqueTargetConfig.mk
{pkgName : Lake.Name}
{name : Lake.Name}
:
Lake.TargetConfig pkgName name → Lake.OpaqueTargetConfig pkgName name
@[implemented_by Lake.OpaqueTargetConfig.unsafeGet]
opaque
Lake.OpaqueTargetConfig.get
{pkgName : Lake.Name}
{name : Lake.Name}
:
Lake.OpaqueTargetConfig pkgName name → Lake.TargetConfig pkgName name
instance
Lake.OpaqueTargetConfig.instCoeOpaqueTargetConfigTargetConfig
{pkgName : Lake.Name}
{name : Lake.Name}
:
Coe (Lake.OpaqueTargetConfig pkgName name) (Lake.TargetConfig pkgName name)
Equations
- Lake.OpaqueTargetConfig.instCoeOpaqueTargetConfigTargetConfig = { coe := Lake.OpaqueTargetConfig.get }
instance
Lake.OpaqueTargetConfig.instInhabitedOpaqueTargetConfig
{pkgName : Lake.Name}
{name : Lake.Name}
[Inhabited (Lake.TargetConfig pkgName name)]
:
Inhabited (Lake.OpaqueTargetConfig pkgName name)
Equations
- Lake.OpaqueTargetConfig.instInhabitedOpaqueTargetConfig = { default := Lake.OpaqueTargetConfig.mk default }
@[simp]
axiom
Lake.OpaqueTargetConfig.get_mk
{pkgName : Lake.Name}
{name : Lake.Name}
:
∀ {x : Lake.TargetConfig pkgName name}, Lake.OpaqueTargetConfig.get (Lake.OpaqueTargetConfig.mk x) = x
unsafe def
Lake.OpaqueTargetConfig.unsafeGet
{pkgName : Lake.Name}
{name : Lake.Name}
:
Lake.OpaqueTargetConfig pkgName name → Lake.TargetConfig pkgName name
Equations
- Lake.OpaqueTargetConfig.unsafeGet = unsafeCast
Instances For
def
Lake.Package.findTargetConfig?
(name : Lake.Name)
(self : Lake.Package)
:
Option (Lake.TargetConfig (Lake.Package.name self) name)
Try to find a target configuration in the package with the given name .
Equations
- Lake.Package.findTargetConfig? name self = Option.map (fun x => Lake.OpaqueTargetConfig.get x) (Lake.DRBMap.find? self.opaqueTargetConfigs name)