We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
lifting monad
https://lean-lang.org/doc/reference/latest/Functors___-Monads-and--do--Notation/Lifting-Monads/#MonadLift___mk
Example Lifting Transformed Monads
def incrBy (n : Nat) : StateM Nat Unit := modify (def incrOrFail : ReaderT Nat (ExceptT String (StateM Nat)) Unit := do if (← read) > 5 then throw "Too much!" incrBy (← read)
The text was updated successfully, but these errors were encountered:
That is indeed a problem! Thanks!
I'm out on vacation until the new year, but I'll take a look as soon as I'm back to work.
Sorry, something went wrong.
No branches or pull requests
https://lean-lang.org/doc/reference/latest/Functors___-Monads-and--do--Notation/Lifting-Monads/#MonadLift___mk
Example Lifting Transformed Monads
The text was updated successfully, but these errors were encountered: