From: David Teller <David.Teller@univ-orleans.fr>
To: OCaml <caml-list@inria.fr>
Subject: Importing module signatures ?
Date: Thu, 04 Oct 2007 14:19:51 +0200 [thread overview]
Message-ID: <1191500391.6118.23.camel@Blefuscu> (raw)
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
next reply other threads:[~2007-10-04 12:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 12:19 David Teller [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1191500391.6118.23.camel@Blefuscu \
--to=david.teller@univ-orleans.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox