Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] module constraints
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Monniaux <David.Monniaux@e...>
Subject: [Caml-list] module constraints
Hi,

I have a module type with two types t and u:
module type FOO = sig type t type u end

How can I restrict this module type to BAR with the constraint that
t=u option ?

module type BAR = FOO with type t=u option
does not work because u is not bound.

[Note: this is for module types far more complex, but the crux of the
matter is summarized above.]


David Monniaux            http://www.di.ens.fr/~monniaux
Laboratoire d'informatique de l'École Normale Supérieure,
Paris, France

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr