Advertisement
Guest User

is this possible?

a guest
May 14th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.25 KB | None | 0 0
  1. module type Extender =
  2.   functor(M : sig type t end) ->
  3. sig
  4.   type t
  5.   val default : M.t -> t
  6. end
  7.  
  8.  
  9. module rec Tree = functor (E: Extender(Tree)) -> sig
  10.   type tr
  11. end = struct
  12.   type tr =
  13.     | Node of tr * tr * E.t
  14.     | Leaf of E.t
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement