Use "with type" with functorial signatures

"Chantal Keller [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
Dear OCaml users,

In a .mli file, I can write the following:


module type BAR = sig
   type t
end

module type FOO = functor (Bar:BAR) -> sig
   type u
   type t = Bar.t
end

module Make : FOO


but I would like to specialize the last line to express the following
idea:


module Make : FOO with type u = string


Is it possible without expanding the signature FOO?

Thanks in advance,
Chantal.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.