Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
First class modules and functors
# module M = Map.Make((val (module String : Map.OrderedType) : Map.OrderedType));;
module M :
sig
type key
type +'a t
end
# module M = Map.Make(String);;
module M :
sig
type key = String.t
type 'a t = 'a Map.Make(String).t
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.