aboutsummaryrefslogtreecommitdiff
path: root/proofs/proofview.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-03-26 20:37:40 +0100
committerPierre-Marie Pédrot2014-03-26 20:42:26 +0100
commit73ddce3136549532c81405fa82871dcd3a51b28f (patch)
tree8cdba08a62187f03cd3096e61f1976bf0e7a30c0 /proofs/proofview.ml
parent681fe91e80266c0947f0fad72e6f509d75ea34f9 (diff)
Adding a tclEFFECTS primitive allowing to push STM side-effects in tactics.
Diffstat (limited to 'proofs/proofview.ml')
-rw-r--r--proofs/proofview.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml
index 67893e3b78..ae4b2e3363 100644
--- a/proofs/proofview.ml
+++ b/proofs/proofview.ml
@@ -555,6 +555,12 @@ let tclEVARMAP =
let tclENV = Proof.current
+let tclEFFECTS eff =
+ (* spiwack: convenience notations, waiting for ocaml 3.12 *)
+ let (>>=) = Proof.bind in
+ Proof.get >>= fun initial ->
+ Proof.set (emit_side_effects eff initial)
+
exception Timeout
let _ = Errors.register_handler begin function
| Timeout -> Errors.errorlabstrm "Proofview.tclTIMEOUT" (Pp.str"Tactic timeout!")