diff options
| author | Pierre-Marie Pédrot | 2020-07-16 20:06:07 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-08-12 14:07:13 +0200 |
| commit | e28edfdc3c373af7f5ca4fbd716c8c5753494d5a (patch) | |
| tree | de91d924b1bbf492820d2e8dea65e3391a4b06bd /tactics/hints.ml | |
| parent | a666788182bce7059e6ba41b917b5ca6ab52ae13 (diff) | |
Export a dedicated function that applies immediately a hint.
Diffstat (limited to 'tactics/hints.ml')
| -rw-r--r-- | tactics/hints.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tactics/hints.ml b/tactics/hints.ml index 9fac66515a..683691d5c4 100644 --- a/tactics/hints.ml +++ b/tactics/hints.ml @@ -1620,3 +1620,9 @@ let connect_hint_clenv h gl = let evd = Evd.merge_context_set Evd.univ_flexible evd ctx in { clenv with evd = evd ; env = Proofview.Goal.env gl }, c in clenv, c + +let hint_res_pf ?with_evars ?with_classes ?flags h = + Proofview.Goal.enter begin fun gl -> + let clenv, _ = connect_hint_clenv h gl in + Clenv.res_pf ?with_evars ?with_classes ?flags clenv + end |
