Documentation

Lean.Data.Options

noncomputable def Lean.Options :
Type
Equations
Equations
Equations
Equations
structure Lean.OptionDecl :
Type
Equations
Equations
Equations
Equations
Equations
Equations
instance Lean.instMonadOptions {m : TypeType} {n : TypeType} [inst : MonadLift m n] [inst : Lean.MonadOptions m] :
Equations
  • Lean.instMonadOptions = { getOptions := liftM Lean.getOptions }
def Lean.getBoolOption {m : TypeType} [inst : Monad m] [inst : Lean.MonadOptions m] (k : Lean.Name) (defValue : optParam Bool false) :
Equations
def Lean.getNatOption {m : TypeType} [inst : Monad m] [inst : Lean.MonadOptions m] (k : Lean.Name) (defValue : optParam Nat 0) :
m Nat
Equations
class Lean.MonadWithOptions (m : TypeType) :
Type 1
Instances
instance Lean.instMonadWithOptions {m : TypeType} {n : TypeType} [inst : MonadFunctor m n] [inst : Lean.MonadWithOptions m] :
Equations
structure Lean.Option (α : Type) :
Type
instance Lean.instInhabitedOption :
{a : Type} → [inst : Inhabited a] → Inhabited (Lean.Option a)
Equations
  • Lean.instInhabitedOption = { default := { name := default, defValue := default } }
structure Lean.Option.Decl (α : Type) :
Type
def Lean.Option.get? {α : Type} [inst : Lean.KVMap.Value α] (opts : Lean.Options) (opt : Lean.Option α) :
Equations
def Lean.Option.get {α : Type} [inst : Lean.KVMap.Value α] (opts : Lean.Options) (opt : Lean.Option α) :
α
Equations
def Lean.Option.set {α : Type} [inst : Lean.KVMap.Value α] (opts : Lean.Options) (opt : Lean.Option α) (val : α) :
Equations
def Lean.Option.setIfNotSet {α : Type} [inst : Lean.KVMap.Value α] (opts : Lean.Options) (opt : Lean.Option α) (val : α) :
Equations
def Lean.Option.register {α : Type} [inst : Lean.KVMap.Value α] (name : Lean.Name) (decl : Lean.Option.Decl α) :
Equations