aboutsummaryrefslogtreecommitdiff
path: root/vernac/declareDef.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-06-28 13:58:27 +0200
committerPierre-Marie Pédrot2019-06-28 13:58:27 +0200
commita2751a19e9c5c0fd91031f9a62948ad29efea038 (patch)
tree8418340ce7d32621eeab718fc2acc268b99ae16a /vernac/declareDef.mli
parenta4f6189978b15df8ce4cc8c8fcb8acb6f069ee8e (diff)
parente74322d0dc134088ef05bd7b5cbb548578f0bf3f (diff)
Merge PR #10434: [declare] Fine tuning of Hook type.
Ack-by: ejgallego Reviewed-by: ppedrot
Diffstat (limited to 'vernac/declareDef.mli')
-rw-r--r--vernac/declareDef.mli21
1 files changed, 10 insertions, 11 deletions
diff --git a/vernac/declareDef.mli b/vernac/declareDef.mli
index 3934a29413..cfff89bc34 100644
--- a/vernac/declareDef.mli
+++ b/vernac/declareDef.mli
@@ -22,23 +22,22 @@ module Hook : sig
as a Coercion, perform some cleanup, update the search database,
etc... *)
module S : sig
- (** [S.t] passes to the client: *)
- type t
- = UState.t
+ type t =
+ { uctx : UState.t
(** [ustate]: universe constraints obtained when the term was closed *)
- -> (Id.t * Constr.t) list
+ ; obls : (Id.t * Constr.t) list
(** [(n1,t1),...(nm,tm)]: association list between obligation
name and the corresponding defined term (might be a constant,
but also an arbitrary term in the Expand case of obligations) *)
- -> locality
- (** [locality]: Locality of the original declaration *)
- -> GlobRef.t
- (** [ref]: identifier of the original declaration *)
- -> unit
+ ; scope : locality
+ (** [scope]: Locality of the original declaration *)
+ ; dref : GlobRef.t
+ (** [dref]: identifier of the original declaration *)
+ }
end
- val make : S.t -> t
- val call : ?hook:t -> ?fix_exn:Future.fix_exn -> S.t
+ val make : (S.t -> unit) -> t
+ val call : ?hook:t -> ?fix_exn:Future.fix_exn -> S.t -> unit
end
val declare_definition