-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: lift StateM to StateT #476
base: main
Are you sure you want to change the base?
feat: lift StateM to StateT #476
Conversation
Maybe I'm not thinking about this right, but |
instance [MonadLift m n] : MonadLift (StateT σ m) (StateT σ n) where | ||
monadLift s := fun state => liftM (s state) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this have performance or error message implications? I think MonadLift
is intended from outer to inner while this would potentially enable a search process.
Heartbeat check: is this PR still active? If it is then just give a thumbs up and I will delete this comment. |
I feel like this might already exist somewhere, but with a not too old Std/Mathlib imported it does not exist yet.