Created
January 29, 2017 16:03
-
-
Save Gbury/93ec4d2f54cbae5fe7d534e1afae3860 to your computer and use it in GitHub Desktop.
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 type S = sig | |
type t | |
val to_string : t -> string | |
end | |
module Make(T : S) : S with type t = int = struct | |
type t = int | |
let to_string i = Printf.sprintf "%d" i | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment