aboutsummaryrefslogtreecommitdiff
path: root/proofs/proofview.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-08-28 15:14:29 +0200
committerPierre-Marie Pédrot2014-08-28 22:45:24 +0200
commit58543b45425b85233c068f9da859996270d1fdcf (patch)
tree6981dca5a3bf4468d2533bb239dcf44aca190ebf /proofs/proofview.ml
parent32c83676c96ae4a218de0bec75d2f3353381dfb3 (diff)
Simplification of the tclCHECKINTERRUPT tactic.
Diffstat (limited to 'proofs/proofview.ml')
-rw-r--r--proofs/proofview.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml
index a750598912..388c60c3f5 100644
--- a/proofs/proofview.ml
+++ b/proofs/proofview.ml
@@ -231,8 +231,6 @@ let catchable_exception = function
(* Unit of the tactic monad *)
let tclUNIT a = (Proof.ret a:'a Proof.t)
-let tclCHECKINTERRUPT a = Control.check_for_interrupt (); Proof.ret a
-
(* Bind operation of the tactic monad *)
let tclBIND = Proof.bind
@@ -988,3 +986,6 @@ end
module NonLogical = Proofview_monad.NonLogical
let tclLIFT = Proofview_monad.Logical.lift
+
+let tclCHECKINTERRUPT =
+ tclLIFT (NonLogical.make Control.check_for_interrupt)