diff options
| author | Pierre-Marie Pédrot | 2020-06-08 15:17:33 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-06-19 16:02:25 +0200 |
| commit | 21b4e41544f03de18d9f5b1bdb93a26b36a97999 (patch) | |
| tree | 85e1848df45b189ad40693ebe2b651eae9ba2c1f /tactics/hints.ml | |
| parent | 2a24a665ca63d82ce2576e75636ab6fdbcad9b36 (diff) | |
Opacify the type of hint metadata.
Diffstat (limited to 'tactics/hints.ml')
| -rw-r--r-- | tactics/hints.ml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tactics/hints.ml b/tactics/hints.ml index 9595fa2033..78ed81ec37 100644 --- a/tactics/hints.ml +++ b/tactics/hints.ml @@ -1576,4 +1576,17 @@ let run_hint tac k = match warn_hint () with let info = Exninfo.reify () in Proofview.tclZERO ~info (UserError (None, (str "Tactic failure."))) -let repr_hint h = h.obj +module FullHint = +struct + type t = full_hint + let priority (h : t) = h.pri + let is_polymorphic (h : t) = h.poly + let pattern (h : t) = h.pat + let database (h : t) = h.db + let run (h : t) k = run_hint h.code k + let print env sigma (h : t) = pr_hint env sigma h.code + let name (h : t) = h.name + let secvars (h : t) = h.secvars + + let repr (h : t) = h.code.obj +end |
