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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] exposing module types
Hi,

On Fri, Feb 08, 2002 at 01:08:44PM -0800, Charles Martin wrote:

> The only one that works is "Foo.Impl.Apple"

Change the line:
 	  type 'a fruit = 'a Impl.fruit
into:
 	  type 'a fruit = 'a Impl.fruit = Apple of 'a

The type name was visible but not its constructor.

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
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