Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.29 KB | None | 0 0
  1. module X = (struct
  2.   type t = int
  3.   let add x y = x + y
  4. end : sig
  5.               type t
  6.               val add : t -> t -> t
  7.             end)
  8.  
  9. module Y = (struct
  10.   type t = string
  11.   let add x y = x ^ y
  12. end : sig
  13.               include module type of X with type t := string
  14.             end)
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement