From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA02038; Thu, 22 Mar 2001 01:04:02 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA02278 for ; Thu, 22 Mar 2001 01:04:01 +0100 (MET) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f2M040j23384 for ; Thu, 22 Mar 2001 01:04:00 +0100 (MET) Received: from localhost (patrick@localhost) by fledge.watson.org (8.11.1/8.11.1) with SMTP id f2M03tJ00844; Wed, 21 Mar 2001 19:03:56 -0500 (EST) (envelope-from patrick@watson.org) Date: Wed, 21 Mar 2001 19:03:55 -0500 (EST) From: Patrick M Doane To: John Max Skaller cc: caml-list@inria.fr Subject: Re: [Caml-list] recursive modules redux, & interface files In-Reply-To: <3AB8F0F8.69FF32B1@ozemail.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I don't see that it makes much of a difference. Besides, the reason it hasn't worked well for me is that inevitably I want to add some functions to the module that has the variant type. For example, pretty printers. The next compromise is to continue the path without a .mli file until I don't want some of these utilities to be exported. In the end, I'm back to the source of the problem, having to duplicate a large variant type. On Thu, 22 Mar 2001, John Max Skaller wrote: > Patrick M Doane wrote: > > > For projects that I've worked on that have huge variant types, I have > > typically placed the variants in a module by themselves with no .mli file. > > This technique hasn't worked too well for me in practice and is still > > annoying for the smaller variants. > > Try placing them in a .mli file instead (no ml file). > > -- > John (Max) Skaller, mailto:skaller@maxtal.com.au > 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 > checkout Vyper http://Vyper.sourceforge.net > download Interscript http://Interscript.sourceforge.net > ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr