ocaml - How can I declare a module (actually a Set.Make) in mli file? -
i have airport.mli , airport.ml.
in airport.ml, have
module airportset = set.make(struct type t = airport let compare = compare end);; this no problem.
i have function
val get_all_airport : unit -> airportset.t;; , generates airportset.
so in airport.mli, need show module airportset airportset recognized.
how can that?
module airportset : (set.s type elt = airport) (the parens unnecessary, putting them there know signature expected, in general case of form sig ... end).
Comments
Post a Comment