aboutsummaryrefslogtreecommitdiff
path: root/library/libobject.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-12-12 18:36:03 +0100
committerPierre-Marie Pédrot2019-12-22 14:03:06 +0100
commit1de15982dceaf28740f49f1d6cba61a5473656b0 (patch)
treee2fef8a399f1fd1279acce59b5e42d15238479f4 /library/libobject.mli
parent9c75b6a6582620e2fb9a39c1ea1aa46a321af6a7 (diff)
Export the dynamic type API of libobjects.
Diffstat (limited to 'library/libobject.mli')
-rw-r--r--library/libobject.mli6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/libobject.mli b/library/libobject.mli
index 146ccc293f..c83ad4086a 100644
--- a/library/libobject.mli
+++ b/library/libobject.mli
@@ -101,7 +101,9 @@ val ident_subst_function : substitution * 'a -> 'a
will hand back two functions, the "injection" and "projection"
functions for dynamically typed library-objects. *)
-type obj
+module Dyn : Dyn.S
+
+type obj = Dyn.t
type algebraic_objects =
| Objs of objects
@@ -120,7 +122,7 @@ and objects = (Names.Id.t * t) list
and substitutive_objects = Names.MBId.t list * algebraic_objects
val declare_object_full :
- 'a object_declaration -> ('a -> obj) * (obj -> 'a)
+ 'a object_declaration -> 'a Dyn.tag
val declare_object :
'a object_declaration -> ('a -> obj)