A specification of a set of module names.
- one : Lean.Name → Lake.Glob
Selects just the specified module name.
- submodules : Lean.Name → Lake.Glob
Selects all submodules of the specified module, but not the module itself.
- andSubmodules : Lean.Name → Lake.Glob
Selects the specified module and all submodules.
Instances For
Equations
- Lake.instInhabitedGlob = { default := Lake.Glob.one default }
Equations
- Lake.instReprGlob = { reprPrec := Lake.reprGlob✝ }
Equations
Equations
- Lake.instCoeNameGlob = { coe := Lake.Glob.one }
Equations
- Lake.instCoeGlobArray = { coe := Array.singleton }
A name glob which matches all names with the prefix, including itself.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A name glob which matches all names with the prefix, but not the prefix itself.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- (Lake.Glob.one a).toString = a.toString
- (Lake.Glob.submodules a).toString = a.toString ++ ".+"
- (Lake.Glob.andSubmodules a).toString = a.toString ++ ".*"
Instances For
Equations
- Lake.Glob.instToString = { toString := Lake.Glob.toString }
Equations
- Lake.Glob.matches m (Lake.Glob.one a) = (a == m)
- Lake.Glob.matches m (Lake.Glob.submodules a) = (a.isPrefixOf m && a != m)
- Lake.Glob.matches m (Lake.Glob.andSubmodules a) = a.isPrefixOf m
Instances For
@[inline]
def
Lake.Glob.forEachModuleIn
{m : Type → Type u_1}
[Monad m]
[MonadLiftT IO m]
(dir : System.FilePath)
(f : Lean.Name → m PUnit)
(self : Lake.Glob)
:
m PUnit
Equations
- Lake.Glob.forEachModuleIn dir f (Lake.Glob.one a) = f a
- Lake.Glob.forEachModuleIn dir f (Lake.Glob.submodules a) = Lean.forEachModuleInDir (Lean.modToFilePath dir a "") fun (x : Lean.Name) => f (a ++ x)
- Lake.Glob.forEachModuleIn dir f (Lake.Glob.andSubmodules a) = f a *> Lean.forEachModuleInDir (Lean.modToFilePath dir a "") fun (x : Lean.Name) => f (a ++ x)