feat: display unsolved goals

This commit is contained in:
Leonardo de Moura 2020-01-16 20:25:22 -08:00
parent 8862a82aac
commit ccd7af0008

View file

@ -33,8 +33,7 @@ withMVarContext mvarId $ fun ctx s =>
| EStateM.Result.ok a newS => EStateM.Result.ok a newS.toTermState
def reportUnsolvedGoals (ref : Syntax) (goals : List MVarId) : TermElabM Unit :=
-- TODO: pretty print goals
throwError ref "there are unsolved goals"
throwError ref $ "unsolved goals" ++ Format.line ++ MessageData.joinSep (goals.map $ MessageData.ofGoal) Format.line
def runTactic (ref : Syntax) (mvarId : MVarId) (tacticCode : Syntax) : TermElabM Unit := do
modify $ fun s => { mctx := s.mctx.instantiateMVarDeclMVars mvarId, .. s };