Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.DerivingHandler = (Array Lake.Name → Option (Lean.TSyntax `Lean.Parser.Term.structInst) → Lean.Elab.Command.CommandElabM Bool)
Instances For
Instances For
def
Lean.Elab.registerDerivingHandlerWithArgs
(className : Lake.Name)
(handler : Lean.Elab.DerivingHandler)
:
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.
Instances For
def
Lean.Elab.registerDerivingHandler
(className : Lake.Name)
(handler : Lean.Elab.DerivingHandlerNoArgs)
:
Like registerBuiltinDerivingHandlerWithArgs
but ignoring any with
argument.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Elab.applyDerivingHandlers
(className : Lake.Name)
(typeNames : Array Lake.Name)
(args? : Option (Lean.TSyntax `Lean.Parser.Term.structInst))
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- ref : Lean.Syntax
- className : Lake.Name
- args? : Option (Lean.TSyntax `Lean.Parser.Term.structInst)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Elab.DerivingClassView.applyHandlers
(view : Lean.Elab.DerivingClassView)
(declNames : Array Lake.Name)
:
Equations
- view.applyHandlers declNames = Lean.withRef view.ref (Lean.Elab.applyDerivingHandlers view.className declNames view.args?)