caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Importing module signatures ?
@ 2007-10-04 12:19 David Teller
  2007-10-04 12:29 ` [Caml-list] " David Allsopp
  2007-10-04 14:09 ` Chris King
  0 siblings, 2 replies; 9+ messages in thread
From: David Teller @ 2007-10-04 12:19 UTC (permalink / raw)
  To: OCaml

   Hi everyone,
 I'm trying to extend a module into another module, preferably without
using functors. For the implementation, I have no problem, simply using
"include" does what I need. For the signature, however, I'm obviously
doing something wrong:
        
        module A =
        struct
        	include String
        end
        
        => works
        
        module A :
        sig
          include String
        end
        
        => "Unbound module type String"
        
It seems that String is the name of the module structure itself rather
than its signature. But what is the name of the signature ?
        
Thanks,
 David
-- 
David Teller ------------------------------------------
Security of Distributed Systems -----------------------
-- http://www.univ-orleans.fr/lifo/Members/David.Teller
----- Laboratoire d'Informatique Fondamentale d'Orleans


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-10-04 21:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 12:19 Importing module signatures ? David Teller
2007-10-04 12:29 ` [Caml-list] " David Allsopp
2007-10-04 13:02   ` David Teller
2007-10-04 14:09 ` Chris King
2007-10-04 14:16   ` Daniel Bünzli
2007-10-04 14:39     ` Vincent Aravantinos
2007-10-04 18:42       ` Ashish Agarwal
2007-10-04 21:56         ` Chris King
2007-10-04 18:53       ` Martin Jambon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).