Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2002-02-08 (21:34)
From: David Monniaux <David.Monniaux@e...>
Subject: [Caml-list] module constraints

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  
Laboratoire d'informatique de l'École Normale Supérieure,
Paris, France

Bug reports:  FAQ:
To unsubscribe, mail  Archives: