- map : Lean.NameMap Lean.DataValue
- hasTrace : Bool
Whether any option with prefix
traceis set. This does not imply that any of such option is set totruebut it does capture the most common case that no such option has ever been touched.
Instances For
@[inline]
Instances For
@[inline]
Instances For
Instances For
@[instance_reducible]
Instances For
@[export lean_register_option]
Instances For
- getOptions : m Options
- getOptionsUnrestricted : m Options
Returns the options without the check of
getOptionsfor recording computations. Only for reads that cannot influence a result cached by such a computation: message rendering, trace and profiler collection, diagnostics, and limits that are part of the cache key or throw when exceeded. SeeLean.getRecordedOption.
Instances
@[instance_reducible]
def Lean.getBoolOption {m : Type → Type} [Monad m] [MonadOptions m] (k : Name) (defValue : Bool := false) :
m Bool
Instances For
def Lean.getNatOption {m : Type → Type} [Monad m] [MonadOptions m] (k : Name) (defValue : Nat := 0) :
m Nat
Instances For
@[instance_reducible]
instance Lean.instMonadWithOptionsOfMonadFunctor {m n : Type → Type} [MonadFunctor m n] [MonadWithOptions m] :
Remark: _inPattern is an internal option for communicating to the delaborator that
the term being delaborated should be treated as a pattern.
Instances For
@[instance_reducible]
- defValue : α
- descr : String
- deprecation? : Option OptionDeprecation
Instances For
Instances For
Instances For
def Lean.Option.getM {m : Type → Type} {α : Type} [Monad m] [MonadOptions m] [KVMap.Value α] (opt : Lean.Option α) :
m α
Instances For
Instances For
def Lean.Option.setIfNotSet {α : Type} [KVMap.Value α] (opts : Options) (opt : Lean.Option α) (val : α) :
Similar to set, but update opts only if it doesn't already contains an setting for opt.name
Instances For
def Lean.Option.register {α : Type} [KVMap.Value α] (name : Name) (decl : Option.Decl α) (ref : Name := by exact decl_name%) :
IO (Lean.Option α)