diff options
author | Matthieu Sozeau <mattam@mattam.org> | 2016-06-15 15:50:18 +0200 |
---|---|---|
committer | Matthieu Sozeau <mattam@mattam.org> | 2016-06-16 18:21:08 +0200 |
commit | 52620cf8ad42a47ba5e90a01b4368220085b654a (patch) | |
tree | 1fe3d3d932484518a83542a76d1c89944ad883ca /tactics | |
parent | 56219d80edc91eeab1a8165db87b565165b7e810 (diff) |
Bind resolve_one_typeclass to 8.5 or 8.6 resolution
Diffstat (limited to 'tactics')
-rw-r--r-- | tactics/class_tactics.ml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tactics/class_tactics.ml b/tactics/class_tactics.ml index 813dcaf08..a4c068fa6 100644 --- a/tactics/class_tactics.ml +++ b/tactics/class_tactics.ml @@ -1454,8 +1454,14 @@ let resolve_one_typeclass env ?(sigma=Evd.empty) gl unique = Goal.V82.mk_goal sigma nc gl Store.empty in let gls = { it = gl ; sigma = sigma; } in let hints = searchtable_map typeclasses_db in - let gls' = V85.eauto85 !typeclasses_depth - ~st:(Hint_db.transparent_state hints) [hints] gls in + let st = Hint_db.transparent_state hints in + let depth = get_typeclasses_depth () in + let gls' = + if get_typeclasses_compat () = Flags.Current then + Proofview.V82.of_tactic + (Search.eauto_tac ~st ~only_classes:true ~depth [hints] ~dep:false) gls + else V85.eauto85 depth ~st [hints] gls + in let evd = sig_sig gls' in let t' = let (ev, inst) = destEvar t in mkEvar (ev, Array.of_list subst) |