Infrastructure for recording extra import dependencies not implied by the environment constants for
the benefit of shake.
Equations
Instances For
Equations
Equations
Instances For
Equations
Equations
- Lean.instReprExtraModUse = { reprPrec := Lean.instReprExtraModUse.repr }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Returns additional recorded import dependencies of the given module.
Equations
- Lean.getExtraModUses env modIdx = Lean.PersistentEnvExtension.getModuleEntries Lean.extraModUses✝ env modIdx
Instances For
Copies additional recorded import dependencies from one environment to another.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.recordExtraModUse
{m : Type → Type}
[Monad m]
[MonadEnv m]
[MonadTrace m]
[MonadOptions m]
[MonadRef m]
[AddMessageContext m]
(modName : Name)
(isMeta : Bool)
:
m Unit
Records an additional import dependency for the current module, using Environment.isExporting as
the visibility level.
Equations
- Lean.recordExtraModUse modName isMeta = do let __do_lift ← Lean.getEnv if (modName != __do_lift.mainModule) = true then Lean.recordExtraModUseCore✝ modName isMeta else pure PUnit.unit
Instances For
def
Lean.recordExtraModUseFromDecl
{m : Type → Type}
[Monad m]
[MonadEnv m]
[MonadTrace m]
[MonadOptions m]
[MonadRef m]
[AddMessageContext m]
(declName : Name)
(isMeta : Bool)
:
m Unit
Records the module of the given declaration as an additional import dependency for the current
module, using Environment.isExporting as the visibility level. If the declaration itself is
already meta, the module dependency is recorded as a non-meta dependency.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Checks whether this module should be preserved as an import by shake.
Equations
- Lean.isExtraRevModUse env modIdx = !(Lean.PersistentEnvExtension.getModuleEntries Lean.isExtraRevModUseExt✝ env modIdx).isEmpty