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
Importing module signatures ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-04 (13:02)
From: David Teller <David.Teller@e...>
Subject: RE: [Caml-list] Importing module signatures ?
On Thu, 2007-10-04 at 13:29 +0100, David Allsopp wrote:
> > It seems that String is the name of the module structure itself rather
> > than its signature. But what is the name of the signature ?
> Module String is not constrained by a named signature - you either need to
> copy the interface from string.mli (it'll be in your ocaml lib directory) or
> use ocamlc -i to generate an inferred interface and copy it in (cf. the
> Extlib module ExtList.List). If there is another way, then I'd be fascinated
> to hear it too!

Well, that's what I did. And I'm deeply dissatisfied with copying and
pasting myself.