aboutsummaryrefslogtreecommitdiffstats
path: root/lib/protocols/Registry.ml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/protocols/Registry.ml2
-rw-r--r--lib/protocols/Registry.mli2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/protocols/Registry.ml b/lib/protocols/Registry.ml
index 4e3a44e..4c47001 100644
--- a/lib/protocols/Registry.ml
+++ b/lib/protocols/Registry.ml
@@ -7,7 +7,7 @@ type Handle.protocol += Registry of implementation
type t = implementation
-let make impl = Registry impl
+let make impl = Registry (impl :> implementation)
let from handle = Handle.into handle (function Registry impl -> Some impl | _ -> None)
diff --git a/lib/protocols/Registry.mli b/lib/protocols/Registry.mli
index 855f8b8..175ebed 100644
--- a/lib/protocols/Registry.mli
+++ b/lib/protocols/Registry.mli
@@ -5,7 +5,7 @@ class type implementation = object
method unregister : string -> (unit, Concepts.Condition.condition) result
end
-val make : implementation -> Handle.protocol
+val make : #implementation -> Handle.protocol
val from : Handle.t -> t Handle.interface option