aboutsummaryrefslogtreecommitdiffhomepage
path: root/vernac
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2018-04-24 18:46:18 +0200
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2018-04-26 12:58:15 +0200
commit81545ec98255e644be589d34a521924549e9e2fa (patch)
tree65ab59d21e680a00e379deffa440f038b5d0c121 /vernac
parent0f107c8a747af6bdb40d70d80236f84b325dc35d (diff)
[api] Move `hint_info_expr` to `Typeclasses`.
`hint_info_expr`, `hint_info_gen` do conceptually belong to the typeclasses modules and should be able to be used without a dependency on the concrete vernacular syntax.
Diffstat (limited to 'vernac')
-rw-r--r--vernac/classes.ml1
-rw-r--r--vernac/classes.mli6
2 files changed, 3 insertions, 4 deletions
diff --git a/vernac/classes.ml b/vernac/classes.ml
index 7f2642093..906b4a959 100644
--- a/vernac/classes.ml
+++ b/vernac/classes.ml
@@ -51,7 +51,6 @@ let _ =
| IsGlobal gr -> Hints.IsGlobRef gr
in
let info =
- let open Vernacexpr in
{ info with hint_pattern =
Option.map
(Constrintern.intern_constr_pattern (Global.env()) Evd.(from_env Global.(env())))
diff --git a/vernac/classes.mli b/vernac/classes.mli
index 0342c840e..e6134ee5d 100644
--- a/vernac/classes.mli
+++ b/vernac/classes.mli
@@ -22,12 +22,12 @@ val mismatched_props : env -> constr_expr list -> Context.Rel.t -> 'a
(** Instance declaration *)
-val existing_instance : bool -> reference -> Vernacexpr.hint_info_expr option -> unit
+val existing_instance : bool -> reference -> hint_info_expr option -> unit
(** globality, reference, optional priority and pattern information *)
val declare_instance_constant :
typeclass ->
- Vernacexpr.hint_info_expr -> (** priority *)
+ hint_info_expr -> (** priority *)
bool -> (** globality *)
Impargs.manual_explicitation list -> (** implicits *)
?hook:(Globnames.global_reference -> unit) ->
@@ -51,7 +51,7 @@ val new_instance :
?generalize:bool ->
?tac:unit Proofview.tactic ->
?hook:(Globnames.global_reference -> unit) ->
- Vernacexpr.hint_info_expr ->
+ hint_info_expr ->
Id.t
(** Setting opacity *)