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] one more thing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Hars <florian@h...>
Subject: Re: [Caml-list] one more thing
On Fri, Dec 28, 2001 at 12:43:41AM -0600, Will Benton wrote:
> Is there some way to get ocamlyacc to include some code in the parser.mli
> file it generates?  I'm having ocamlyacc generate objects whose type
> constructors are defined in another module, and I have "open Module" in
> the .mly file -- but, since it isn't included in the .mli file, the .mli
> file won't compile.  (Or is my environment screwed-up?)

The last time  somehing like this was discussed (
) the recommended solution was to put all definitions in a separate
module and use fully qualified names in the mly, so they end up
fully qualified in the mli, so don't say "open Module", but 
"Module.some_function x". It is preferrable for reasons of 
maintainability, anyway.

Yours, Florian Hars.
Bug reports:  FAQ:
To unsubscribe, mail  Archives: