chore: remove workarounds
This commit is contained in:
parent
eabc01d529
commit
573ca7dcad
3 changed files with 4 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ structure Context :=
|
|||
(currMacroScope : MacroScope := firstFrontendMacroScope)
|
||||
(ref : Syntax := Syntax.missing)
|
||||
|
||||
abbrev CommandElabCoreM (ε) := ReaderT Context $ StateRefT State (EIO ε)
|
||||
abbrev CommandElabCoreM (ε) := ReaderT Context $ StateRefT State $ EIO ε
|
||||
abbrev CommandElabM := CommandElabCoreM Exception
|
||||
abbrev CommandElab := Syntax → CommandElabM Unit
|
||||
abbrev Linter := Syntax → CommandElabM Unit
|
||||
|
|
|
|||
|
|
@ -594,7 +594,7 @@ def instantiateMVars (mctx : MetavarContext) (e : Expr) : Expr × MetavarContext
|
|||
if !e.hasMVar then
|
||||
(e, mctx)
|
||||
else
|
||||
let instantiate {ω} (e : Expr) : (MonadCacheT Expr Expr $ StateRefT MetavarContext (ST ω)) Expr :=
|
||||
let instantiate {ω} (e : Expr) : (MonadCacheT Expr Expr $ StateRefT MetavarContext $ ST ω) Expr :=
|
||||
instantiateExprMVars e
|
||||
runST fun _ => instantiate e $.run $.run mctx
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ instance monadState.hasGetAt (β : Type) (v : β) (α : Type) (m : Type → Type
|
|||
|
||||
export HasGetAt (getAt)
|
||||
|
||||
abbrev M := StateRefT (Label 0 Nat) (StateRefT (Label 1 Nat) (StateRefT (Label 2 Nat) IO))
|
||||
abbrev M := StateRefT (Label 0 Nat) $ StateRefT (Label 1 Nat) $ StateRefT (Label 2 Nat) IO
|
||||
|
||||
def f4 : M Nat := do
|
||||
let a0 : Nat ← getAt 0
|
||||
|
|
@ -52,7 +52,7 @@ pure (a0 + a1 + a2)
|
|||
|
||||
#eval f4.run' ⟨10⟩ $.run' ⟨20⟩ $.run' ⟨30⟩
|
||||
|
||||
abbrev S (ω : Type) := StateRefT Nat (StateRefT String (ST ω))
|
||||
abbrev S (ω : Type) := StateRefT Nat $ StateRefT String $ ST ω
|
||||
|
||||
def f5 {ω} : S ω Unit := do
|
||||
let s ← getThe String
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue