English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Default module type?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-09-25 (12:19)
From: Christian Sternagel <christian.sternagel@u...>
Subject: Default module type?
Hi there,

when I have a file m.ml I can use

include M

in other *.ml files to include the content of m.ml. However, the same 
functionality for module types seems not to exist. I have an interface 
file m.mli and want to use

include M

within another *.mli file (so that I only have to write the 
documentation for module M once, namely in m.mli). But there is no
module type M. Does anyone have the same problem and/or have a solution?


christian sternagel