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] Automatic generation of mli files
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] Automatic generation of mli files

> > exported), ocaml -i > foo.mli works just fine.
> At least under unix, it does not.
> The shell creates foo.mli before the compilation starts; ocamlc sees
> that and believes a .cmi should exist; but it doesn't; so compilation
> aborts.

Yeah, I didn't mean it worked in a single build instance (Xavier's
replying to my feature request in your link, and yes, hopefully
that'll make it into the next release :), I just meant it works for
generating an mli file if you just want the text file.  In
other words, if I want an mli from an ml, ocamlc -i will generate one
that I can then use for later.  The output fix will make it workable
in a makefile, which will be even better!

Now if it only mattered for decoupling compiles!  :)


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: