Skip to content

Instantly share code, notes, and snippets.

@superbobry
Created January 15, 2012 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superbobry/1617642 to your computer and use it in GitHub Desktop.
Save superbobry/1617642 to your computer and use it in GitHub Desktop.
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