Skip to content

Instantly share code, notes, and snippets.

@Leonidas-from-XIV
Created November 11, 2014 15:41
Show Gist options
  • Select an option

  • Save Leonidas-from-XIV/1ad841cd0a7a79739610 to your computer and use it in GitHub Desktop.

Select an option

Save Leonidas-from-XIV/1ad841cd0a7a79739610 to your computer and use it in GitHub Desktop.
module type I = sig
type t
val id: t -> t
end
module Integers = struct
type t = int
let id x = x
end
module F = functor (M: I) -> struct
type t = M.t
let id x = M.id x
end
(* module F (M: I): I = struct *)
(* type t = M.t *)
(* let id x = M.id x *)
(* end *)
module B = F(Integers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment