chore: generalize signatures
This commit is contained in:
parent
34d8ecc066
commit
02224548d2
1 changed files with 2 additions and 2 deletions
|
|
@ -67,10 +67,10 @@ end Match
|
|||
|
||||
export Match (MatcherInfo)
|
||||
|
||||
def getMatcherInfo? (declName : Name) : MetaM (Option MatcherInfo) :=
|
||||
def getMatcherInfo? [Monad m] [MonadEnv m] (declName : Name) : m (Option MatcherInfo) :=
|
||||
return Match.Extension.getMatcherInfo? (← getEnv) declName
|
||||
|
||||
def isMatcher (declName : Name) : MetaM Bool :=
|
||||
def isMatcher [Monad m] [MonadEnv m] (declName : Name) : m Bool :=
|
||||
return (← getMatcherInfo? declName).isSome
|
||||
|
||||
structure MatcherApp where
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue