Skip to content

Instantly share code, notes, and snippets.

module type MESSAGE =
sig
type obj
type variant
val make : unit -> obj
(* encapsulate object in a variant type *)
val convert : obj -> variant
val print : obj -> unit
end
ocamlc x.ml
File "x.ml", line 30, characters 16-28:
Error: Unbound value Rep.dispatch