Skip to content

Instantly share code, notes, and snippets.

@Gbury
Created January 29, 2017 16:03
Show Gist options
  • Save Gbury/93ec4d2f54cbae5fe7d534e1afae3860 to your computer and use it in GitHub Desktop.
Save Gbury/93ec4d2f54cbae5fe7d534e1afae3860 to your computer and use it in GitHub Desktop.
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