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 (12:30)
From: David Allsopp <dra-news@m...>
Subject: RE: [Caml-list] Importing module signatures ?
> 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!