chore: missing [inline]

This commit is contained in:
Leonardo de Moura 2020-09-24 06:54:34 -07:00
parent f73fca1da7
commit 550b5d2b47

View file

@ -21,12 +21,12 @@ class STWorld (σ : outParam Type) (m : Type → Type)
instance STWorld.trans {σ m n} [STWorld σ m] [MonadLift m n] : STWorld σ n := ⟨⟩
instance STWorld.base {ε σ} : STWorld σ (EST ε σ) := ⟨⟩
def runEST {ε α : Type} (x : forall (σ : Type), EST ε σ α) : Except ε α :=
@[inline] def runEST {ε α : Type} (x : forall (σ : Type), EST ε σ α) : Except ε α :=
match x Unit () with
| EStateM.Result.ok a _ => Except.ok a
| EStateM.Result.error ex _ => Except.error ex
def runST {α : Type} (x : forall (σ : Type), ST σ α) : α :=
@[inline] def runST {α : Type} (x : forall (σ : Type), ST σ α) : α :=
match x Unit () with
| EStateM.Result.ok a _ => a
| EStateM.Result.error ex _ => Empty.rec _ ex