Skip to content

Conversation

@datokrat
Copy link
Contributor

@datokrat datokrat commented Dec 6, 2025

TBA

abbrev ReaderM (ρ : Type u) := ReaderT ρ Id

instance [Monad m] [MonadAttach m] : MonadAttach (ReaderT ρ m) where
CanReturn x a := Exists (fun r => MonadAttach.CanReturn (x.run r) a)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize this is a draft PR, but this seems slightly fishy to me; I worry there are cases where you need to constrain r with a predicate.

@datokrat
Copy link
Contributor Author

datokrat commented Dec 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants