chore: MetaHasEval TermElabM: print messages
This commit is contained in:
parent
f4e6635f2b
commit
310fc986c1
1 changed files with 6 additions and 1 deletions
|
|
@ -1268,7 +1268,12 @@ Prod.fst <$> x.run ctx s
|
|||
pure (a, sCore, sMeta, s)
|
||||
|
||||
instance MetaHasEval {α} [MetaHasEval α] : MetaHasEval (TermElabM α) :=
|
||||
⟨fun env opts x _ => MetaHasEval.eval env opts $ x.run' mkSomeContext⟩
|
||||
⟨fun env opts x _ =>
|
||||
let x := finally x do {
|
||||
s ← get;
|
||||
liftIO $ s.messages.forM fun msg => msg.toString >>= IO.println
|
||||
};
|
||||
MetaHasEval.eval env opts $ x.run' mkSomeContext⟩
|
||||
|
||||
end Term
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue