chore: missing annotations

This commit is contained in:
Leonardo de Moura 2022-10-15 19:51:56 -07:00
parent 9a41680ec9
commit 4b018cdc72
2 changed files with 2 additions and 0 deletions

View file

@ -869,6 +869,7 @@ class MonadEnv (m : Type → Type) where
export MonadEnv (getEnv modifyEnv)
@[alwaysInline]
instance (m n) [MonadLift m n] [MonadEnv m] : MonadEnv n where
getEnv := liftM (getEnv : m Environment)
modifyEnv := fun f => liftM (modifyEnv f : m Unit)

View file

@ -330,6 +330,7 @@ class MonadMCtx (m : Type → Type) where
export MonadMCtx (getMCtx modifyMCtx)
@[alwaysInline]
instance (m n) [MonadLift m n] [MonadMCtx m] : MonadMCtx n where
getMCtx := liftM (getMCtx : m _)
modifyMCtx := fun f => liftM (modifyMCtx f : m _)