chore: remove dead code

`StateRefT` doesn't need a `MonadIO` instance anymore.
This commit is contained in:
Leonardo de Moura 2020-08-21 12:06:16 -07:00
parent ae5b4defb1
commit afed2bb827

View file

@ -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