lean4-htt/tests/pkg/deriving/UserDeriving/Simple.lean
2022-02-09 12:21:11 -08:00

15 lines
356 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Lean
class Simple (α : Type u) where
val : α
open Lean
open Lean.Elab
open Lean.Elab.Command
def mkSimpleHandler (declNames : Array Name) : CommandElabM Bool := do
dbg_trace ">> mkSimpleHandler {declNames}"
-- TODO: see examples at src/Lean/Elab/Deriving
return true
initialize
registerBuiltinDerivingHandler ``Simple mkSimpleHandler