Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] recursive types and modules problem
@ 2013-10-31 20:13 Nicolas Ojeda Bar
  2013-10-31 21:27 ` Wojciech Meyer
  2013-10-31 23:43 ` Jacques Garrigue
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Ojeda Bar @ 2013-10-31 20:13 UTC (permalink / raw)
  To: caml-list

Dear list,

What is the best way to rewrite the following recursive definitions so that
I can actually compile them?

S = Set.Make (struct type t = t1 let compare x1 x2 = x1.stamp - x2.stamp end)

type t1 = {
  stamp : int;
  x : t2
}

and t2 = {
  y : S.t
}

Thank you very much!
Nicolas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-31 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-31 20:13 [Caml-list] recursive types and modules problem Nicolas Ojeda Bar
2013-10-31 21:27 ` Wojciech Meyer
2013-10-31 23:43 ` Jacques Garrigue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox