chore: remove dead code
`StateRefT` doesn't need a `MonadIO` instance anymore.
This commit is contained in:
parent
ae5b4defb1
commit
afed2bb827
1 changed files with 0 additions and 4 deletions
|
|
@ -93,10 +93,6 @@ private def ioErrorToMessage (ctx : Context) (ref : Syntax) (err : IO.Error) : M
|
|||
let ref := getBetterRef ref ctx.macroStack;
|
||||
mkMessageAux ctx ref (addMacroStack (toString err) ctx.macroStack) MessageSeverity.error
|
||||
|
||||
-- This instance is needed for StateRefT
|
||||
instance monadIOAux : MonadIO (EIO Exception) :=
|
||||
{ liftIO := fun _ x => adaptExcept (fun ex => Exception.error { fileName := "<unavaiable>", pos := ⟨0, 0⟩, data := toString ex }) x }
|
||||
|
||||
@[inline] def liftEIO {α} (x : EIO Exception α) : CommandElabM α :=
|
||||
liftM x
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue