feat: helper instance
This commit is contained in:
parent
09e588269c
commit
1e496fb32d
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ universes u v w
|
|||
def ReaderT (ρ : Type u) (m : Type u → Type v) (α : Type u) : Type (max u v) :=
|
||||
ρ → m α
|
||||
|
||||
instance ReaderT.inhabited (ρ : Type u) (m : Type u → Type v) (α : Type u) [Inhabited (m α)] : Inhabited (ReaderT ρ m α) :=
|
||||
⟨fun _ => arbitrary _⟩
|
||||
|
||||
@[inline] def ReaderT.run {ρ : Type u} {m : Type u → Type v} {α : Type u} (x : ReaderT ρ m α) (r : ρ) : m α :=
|
||||
x r
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue