Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. module type X = sig type t end
  2. module F = functor (X : X) -> struct include X end
  3. module A = F (struct type t = int * int end)
  4. module B = F (struct type t = { x : int; y : int } end)
  5.  
  6. module type X = sig type t end
  7. module F : functor (X : X) -> sig type t = X.t end
  8. module A : sig type t = int * int end
  9. module B : sig type t end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement