Skip to content

Commit

Permalink
refactor: generalize addMatcherInfo (#5068)
Browse files Browse the repository at this point in the history
works in any `MonadEnv`.
  • Loading branch information
nomeata authored Aug 16, 2024
1 parent 59ca274 commit 53e6e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Meta/Match/MatcherInfo.lean
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def getMatcherInfo? (env : Environment) (declName : Name) : Option MatcherInfo :

end Extension

def addMatcherInfo (matcherName : Name) (info : MatcherInfo) : MetaM Unit :=
def addMatcherInfo [Monad m] [MonadEnv m] (matcherName : Name) (info : MatcherInfo) : m Unit :=
modifyEnv fun env => Extension.addMatcherInfo env matcherName info

end Match
Expand Down

0 comments on commit 53e6e99

Please sign in to comment.