A buildable Lean module of a LeanLib
.
- lib : Lake.LeanLib
- name : Lake.Name
- keyName : Lake.Name
The name of the module as a key. Used to create private modules (e.g., executable roots).
Instances For
Equations
- Lake.instHashableModule = { hash := fun (m : Lake.Module) => hash m.keyName }
Equations
- Lake.instBEqModule = { beq := fun (m n : Lake.Module) => m.keyName == n.keyName }
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Equations
- Lake.ModuleMap α = Lean.RBMap Lake.Module α fun (x x_1 : Lake.Module) => x.name.quickCmp x_1.name
Instances For
Locate the named, buildable module in the library (which implies it is local and importable).
Equations
- Lake.LeanLib.findModule? mod self = if Lake.LeanLib.isBuildableModule mod self = true then some { lib := self, name := mod, keyName := mod } else none
Instances For
Locate the named, buildable, importable, local module in the package.
Equations
- Lake.Package.findModule? mod self = self.leanLibs.findSomeRev? fun (x : Lake.LeanLib) => Lake.LeanLib.findModule? mod x
Instances For
Get an Array
of the library's modules (as specified by its globs).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The library's buildable root modules.
Equations
- self.rootModules = Array.filterMap (fun (mod : Lake.Name) => Lake.LeanLib.findModule? mod self) self.config.roots
Instances For
@[inline]
Equations
- Lake.Module.filePath dir ext self = Lean.modToFilePath dir self.name ext
Instances For
@[inline]
Equations
- Lake.Module.srcPath ext self = Lake.Module.filePath self.lib.srcDir ext self
Instances For
@[inline]
Equations
- Lake.Module.leanLibPath ext self = Lake.Module.filePath self.pkg.leanLibDir ext self
Instances For
@[inline]
Equations
- Lake.Module.irPath ext self = Lake.Module.filePath self.pkg.irDir ext self
Instances For
Instances For
Suffix for single module dynlibs (e.g., for precompilation).
Equations
Instances For
@[inline]
Equations
- self.dynlibName = Lean.Name.toStringWithSep "-" true self.name ++ Lake.Module.dynlibSuffix
Instances For
@[inline]
Equations
- self.dynlibFile = self.pkg.nativeLibDir / { toString := Lake.nameToSharedLib self.dynlibName }
Instances For
@[inline]
Equations
- self.nativeFacets shouldExport = self.lib.nativeFacets shouldExport
Instances For
Trace Helpers #
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.Module.instGetMTime = { getMTime := Lake.Module.getMTime }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.Module.instCheckExists = { checkExists := Lake.Module.checkExists }