Created
January 15, 2012 22:03
-
-
Save superbobry/1617642 to your computer and use it in GitHub Desktop.
First class modules and functors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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