Documentation
Batteries
.
Lean
.
SatisfiesM
Search
return to top
source
Imports
Init
Batteries.Classes.SatisfiesM
Batteries.Lean.LawfulMonad
Lean.Elab.Command
Imported by
instMonadSatisfyingEIO
instMonadSatisfyingBaseIO
instMonadSatisfyingIO
instMonadSatisfyingEST
instMonadSatisfyingCoreM
instMonadSatisfyingMetaM
instMonadSatisfyingTermElabM
instMonadSatisfyingTacticM
instMonadSatisfyingCommandElabM
Construct
MonadSatisfying
instances for the Lean monad stack.
#
source
instance
instMonadSatisfyingEIO
{ε :
Type
}
:
MonadSatisfying
(
EIO
ε
)
Equations
instMonadSatisfyingEIO
=
inferInstanceAs
(
MonadSatisfying
(
EStateM
ε
IO.RealWorld
)
)
source
instance
instMonadSatisfyingBaseIO
:
MonadSatisfying
BaseIO
Equations
instMonadSatisfyingBaseIO
=
inferInstanceAs
(
MonadSatisfying
(
EIO
Empty
)
)
source
instance
instMonadSatisfyingIO
:
MonadSatisfying
IO
Equations
instMonadSatisfyingIO
=
inferInstanceAs
(
MonadSatisfying
(
EIO
IO.Error
)
)
source
instance
instMonadSatisfyingEST
{ε σ :
Type
}
:
MonadSatisfying
(
EST
ε
σ
)
Equations
instMonadSatisfyingEST
=
inferInstanceAs
(
MonadSatisfying
(
EStateM
ε
σ
)
)
source
instance
instMonadSatisfyingCoreM
:
MonadSatisfying
Lean.CoreM
Equations
instMonadSatisfyingCoreM
=
inferInstanceAs
(
MonadSatisfying
(
ReaderT
Lean.Core.Context
(
StateRefT'
IO.RealWorld
Lean.Core.State
(
EIO
Lean.Exception
)
)
)
)
source
instance
instMonadSatisfyingMetaM
:
MonadSatisfying
Lean.MetaM
Equations
instMonadSatisfyingMetaM
=
inferInstanceAs
(
MonadSatisfying
(
ReaderT
Lean.Meta.Context
(
StateRefT'
IO.RealWorld
Lean.Meta.State
Lean.CoreM
)
)
)
source
instance
instMonadSatisfyingTermElabM
:
MonadSatisfying
Lean.Elab.TermElabM
Equations
instMonadSatisfyingTermElabM
=
inferInstanceAs
(
MonadSatisfying
(
ReaderT
Lean.Elab.Term.Context
(
StateRefT'
IO.RealWorld
Lean.Elab.Term.State
Lean.MetaM
)
)
)
source
instance
instMonadSatisfyingTacticM
:
MonadSatisfying
Lean.Elab.Tactic.TacticM
Equations
instMonadSatisfyingTacticM
=
inferInstanceAs
(
MonadSatisfying
(
ReaderT
Lean.Elab.Tactic.Context
(
StateRefT'
IO.RealWorld
Lean.Elab.Tactic.State
Lean.Elab.TermElabM
)
)
)
source
instance
instMonadSatisfyingCommandElabM
:
MonadSatisfying
Lean.Elab.Command.CommandElabM
Equations
instMonadSatisfyingCommandElabM
=
inferInstanceAs
(
MonadSatisfying
(
ReaderT
Lean.Elab.Command.Context
(
StateRefT'
IO.RealWorld
Lean.Elab.Command.State
(
EIO
Lean.Exception
)
)
)
)