Skip to content

Commit 9ddcf5c

Browse files
committed
feat: add comment
1 parent 2e59fee commit 9ddcf5c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Std/Internal/Async/Basic.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ class MonadAsync (t : Type → Type) (m : Type → Type) extends Monad m where
8484
-/
8585
async : m α → m (t α)
8686

87+
/-
88+
These instances have the default_instance attribute so that other default instances
89+
can function correctly within monad transformers.
90+
-/
91+
8792
@[default_instance]
8893
instance [Monad m] [MonadAwait t m] : MonadAwait t (StateT n m) where
8994
await := liftM (m := m) ∘ MonadAwait.await

0 commit comments

Comments
 (0)