diff options
author | aspiwack <aspiwack@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-11-02 15:38:32 +0000 |
---|---|---|
committer | aspiwack <aspiwack@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-11-02 15:38:32 +0000 |
commit | 00d30f5330f4f1dd487d5754a0fb855a784efbf0 (patch) | |
tree | def0f4e640f71192748a2e964b92b9418970a98d /plugins/quote | |
parent | ea879916e09cd19287c831152d7ae2a84c61f4b0 (diff) |
Tachmach.New is now in Proofview.Goal.enter style.
As a result the use of the glist-style interface for manipulating goals has almost been removed.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@17001 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/quote')
-rw-r--r-- | plugins/quote/quote.ml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/quote/quote.ml b/plugins/quote/quote.ml index 89d161f73..532a2f11d 100644 --- a/plugins/quote/quote.ml +++ b/plugins/quote/quote.ml @@ -454,8 +454,8 @@ let quote_terms ivs lc = let quote f lid = Proofview.Goal.enter begin fun gl -> - Tacmach.New.pf_global f >>= fun f -> - Proofview.Goal.lift (Goal.sensitive_list_map Tacmach.New.pf_global_sensitive lid) >>= fun cl -> + let f = Tacmach.New.pf_global f gl in + let cl = List.map (fun id -> Tacmach.New.pf_global id gl) lid in Proofview.Goal.lift (compute_ivs f cl) >>= fun ivs -> let concl = Proofview.Goal.concl gl in Proofview.Goal.lift (quote_terms ivs [concl]) >>= fun quoted_terms -> @@ -469,8 +469,9 @@ let quote f lid = end let gen_quote cont c f lid = - Tacmach.New.pf_global f >>= fun f -> - Proofview.Goal.lift (Goal.sensitive_list_map Tacmach.New.pf_global_sensitive lid) >>= fun cl -> + Proofview.Goal.enter begin fun gl -> + let f = Tacmach.New.pf_global f gl in + let cl = List.map (fun id -> Tacmach.New.pf_global id gl) lid in Proofview.Goal.lift (compute_ivs f cl) >>= fun ivs -> Proofview.Goal.lift (quote_terms ivs [c]) >>= fun quoted_terms -> let (p, vm) = match quoted_terms with @@ -480,6 +481,7 @@ let gen_quote cont c f lid = match ivs.variable_lhs with | None -> cont (mkApp (f, [| p |])) | Some _ -> cont (mkApp (f, [| vm; p |])) + end (*i |