--- In
ocaml_beginners@..., rixed@... wrote:
> # module MAKE_PTYPE (V_:VTYPE) : PTYPE = struct module V=V_ let foo v = 1 end;;
Try this one instead:
# module MAKE_PTYPE (V_:VTYPE) : PTYPE with type V.t = V_.t = struct module V=V_ let foo v = 1 end;;
Ocaml does not make the inference for you since in other cases you may want to abstract away from V_, and hide how P was created. Thus you have to tell it explicitely.
V.