Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.43 KB | None | 0 0
  1. module type Foo = functor(S : sig type s val foo : s -> s end) ->
  2.   sig
  3.     type 'a t
  4.   end
  5.  
  6. module Bar =
  7.   functor(F: Foo) ->
  8.   struct
  9.     module rec S :
  10.                  sig
  11.                    type s = int
  12.                    type foo = Foo of S.s F(S).t
  13.                    val foo : s -> s
  14.                  end =
  15.       struct
  16.         type s = int
  17.         type foo = Foo of S.s F(S).t
  18.         let foo x = x
  19.       end
  20.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement