aboutsummaryrefslogtreecommitdiff
path: root/proofs/proof.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-11-20 14:10:16 +0100
committerPierre-Marie Pédrot2018-11-20 14:10:16 +0100
commit4735f7d9da506a64c63680c4630e1f32945d24dc (patch)
tree881a246330100ee961801e89113d3df48d95b8f3 /proofs/proof.mli
parent1595aa8045e7076aa51b58f80173dd245303bed6 (diff)
parent758041989f29ed960eba8bf7fe0d232d3937db60 (diff)
Merge PR #8982: [proof] Provide better control of "open proofs" exceptions.
Diffstat (limited to 'proofs/proof.mli')
-rw-r--r--proofs/proof.mli14
1 files changed, 9 insertions, 5 deletions
diff --git a/proofs/proof.mli b/proofs/proof.mli
index 8cf543557b..aaabea3454 100644
--- a/proofs/proof.mli
+++ b/proofs/proof.mli
@@ -89,11 +89,15 @@ val compact : t -> t
Raises [HasShelvedGoals] if some goals are left on the shelf.
Raises [HasGivenUpGoals] if some goals have been given up.
Raises [HasUnresolvedEvar] if some evars have been left undefined. *)
-exception UnfinishedProof
-exception HasShelvedGoals
-exception HasGivenUpGoals
-exception HasUnresolvedEvar
-val return : t -> Evd.evar_map
+type open_error_reason =
+ | UnfinishedProof
+ | HasShelvedGoals
+ | HasGivenUpGoals
+ | HasUnresolvedEvar
+
+exception OpenProof of Names.Id.t option * open_error_reason
+
+val return : ?pid:Names.Id.t -> t -> Evd.evar_map
(*** Focusing actions ***)