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

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

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -