Documentation

Lean.Exception

inductive Lean.Exception :
Type
Equations
instance Lean.instAddErrorMessageContext (m : Type → Type) [inst : Lean.AddMessageContext m] [inst : Monad m] :
Equations
class Lean.MonadError (m : Type → Type) extends MonadExceptOf , Lean.MonadRef , Lean.AddErrorMessageContext :
Type 1
Instances
def Lean.throwError {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadError m] (msg : Lean.MessageData) :
m α
Equations
def Lean.throwUnknownConstant {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadError m] (constName : Lean.Name) :
m α
Equations
def Lean.throwErrorAt {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadError m] (ref : Lean.Syntax) (msg : Lean.MessageData) :
m α
Equations
def Lean.ofExcept {m : Type → Type} {ε : Type u_1} {α : Type} [inst : Monad m] [inst : Lean.MonadError m] [inst : ToString ε] (x : Except ε α) :
m α
Equations
def Lean.throwKernelException {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadError m] [inst : Lean.MonadOptions m] (ex : Lean.KernelException) :
m α
Equations
class Lean.MonadRecDepth (m : Type → Type) :
Type 1
  • withRecDepth : {α : Type} → Nat → m α → m α
  • getRecDepth : m Nat
  • getMaxRecDepth : m Nat
Instances
instance Lean.instMonadRecDepthReaderT {m : Type → Type} {ρ : Type} [inst : Monad m] [inst : Lean.MonadRecDepth m] :
Equations
  • Lean.instMonadRecDepthReaderT = { withRecDepth := fun {α} d x ctx => Lean.MonadRecDepth.withRecDepth d (x ctx), getRecDepth := fun x => Lean.MonadRecDepth.getRecDepth, getMaxRecDepth := fun x => Lean.MonadRecDepth.getMaxRecDepth }
instance Lean.instMonadRecDepthStateRefT' {m : Type → Type} {ω : Type} {σ : Type} [inst : Monad m] [inst : Lean.MonadRecDepth m] :
Equations
instance Lean.instMonadRecDepthMonadCacheT {α : Type} {m : Type → Type} {ω : outParam Type} {β : Type} [inst : BEq α] [inst : Hashable α] [inst : Monad m] [inst : STWorld ω m] [inst : Lean.MonadRecDepth m] :
Equations
@[inline]
def Lean.withIncRecDepth {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadError m] [inst : Lean.MonadRecDepth m] (x : m α) :
m α
Equations