Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The implementation in Mathlib 4 doesn't use `mapAccumLM` so the thing to do is only updating the header.
  • Loading branch information
Komyyy committed Jul 13, 2023
1 parent b41e763 commit 5cdfdb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Mathlib/Tactic/DeriveTraversable.lean
Expand Up @@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
! This file was ported from Lean 3 source module control.traversable.derive
! leanprover-community/mathlib commit 70fd9563a21e7b963887c9360bd29b2393e6225a
! leanprover-community/mathlib commit b01d6eb9d0a308807af54319b264d0994b91774b
! Please do not edit these lines, except to modify the commit id
! if you have ported upstream changes.
-/
Expand Down
7 changes: 7 additions & 0 deletions test/Traversable.lean
Expand Up @@ -51,6 +51,13 @@ inductive MyTree (α : Type)

#guard_msgs (drop info) in #synth LawfulTraversable MyTree

inductive MyTree' (α : Type)
| leaf : MyTree' α
| node : MyTree' α → α → MyTree' α → MyTree' α
deriving LawfulTraversable

#guard_msgs (drop info) in #synth LawfulTraversable MyTree'

section
open MyTree hiding traverse

Expand Down

0 comments on commit 5cdfdb8

Please sign in to comment.