Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Constraints in module types
@ 2006-01-19 10:53 Alessandro Baretta
  2006-01-19 11:38 ` [Caml-list] " Jacques Garrigue
  0 siblings, 1 reply; 3+ messages in thread
From: Alessandro Baretta @ 2006-01-19 10:53 UTC (permalink / raw)
  To: Ocaml

# type foo = [ `Foo of foo ];;
type foo = [ `Foo of foo ]
# module type BAR = sig type bar constraint bar = [ > foo ] end;;
The type constraints are not consistent.
Type bar is not compatible with type [> foo ]

Is there a good reason for prohibiting the above declarations? Could I achieve a 
similar effect with private row types?

Alex


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

end of thread, other threads:[~2006-01-19 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19 10:53 Constraints in module types Alessandro Baretta
2006-01-19 11:38 ` [Caml-list] " Jacques Garrigue
2006-01-19 14:38   ` Alessandro Baretta

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