Documentation

Lean.Elab.Deriving.Basic

A DerivingHandler is called on the fully qualified names of all types it is running for as well as the syntax of a with argument, if present.

For example, deriving instance Foo with fooArgs for Bar, Baz invokes fooHandler #[`Bar, `Baz] `(fooArgs).

Equations
  • One or more equations did not get rendered due to their size.

Like registerBuiltinDerivingHandlerWithArgs but ignoring any with argument.

Equations
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Elab.applyDerivingHandlers (className : Lean.Name) (typeNames : Array Lean.Name) (args? : Option (Lean.TSyntax `Lean.Parser.Term.structInst)) :
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Elab.getOptDerivingClasses {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadResolveName m] [inst : Lean.MonadError m] [inst : Lean.Elab.MonadInfoTree m] (optDeriving : Lean.Syntax) :
Equations
  • One or more equations did not get rendered due to their size.