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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -