We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e59fee commit 9ddcf5cCopy full SHA for 9ddcf5c
src/Std/Internal/Async/Basic.lean
@@ -84,6 +84,11 @@ class MonadAsync (t : Type → Type) (m : Type → Type) extends Monad m where
84
-/
85
async : m α → m (t α)
86
87
+/-
88
+These instances have the default_instance attribute so that other default instances
89
+can function correctly within monad transformers.
90
+-/
91
+
92
@[default_instance]
93
instance [Monad m] [MonadAwait t m] : MonadAwait t (StateT n m) where
94
await := liftM (m := m) ∘ MonadAwait.await
0 commit comments