From: Malcolm Matalka <mmatalka@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] Expressing module sig and impl in mli file
Date: Tue, 18 Sep 2012 23:02:31 +0200 [thread overview]
Message-ID: <CAKziXDWWXFByJvT3iverWpPr6KmY-FSbr9-NBXzrAWYaubitpQ@mail.gmail.com> (raw)
I'm sure this question has been asked before but I didn't see it in
the Ocaml FAQ and I'm not sure how to express it for a search.
In short, how do I express the following line in a .mli file:
module Foo : Bar = Baz
What I want to accomplish is make present the module Foo to the user,
where they know both the interface and the concerete types on Foo.
Thanks!
/Malcolm
next reply other threads:[~2012-09-18 21:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-18 21:02 Malcolm Matalka [this message]
2012-09-18 21:13 ` Gabriel Scherer
2012-09-18 21:31 ` Malcolm Matalka
2012-09-18 22:40 ` Malcolm Matalka
2012-09-19 2:11 ` Edgar Friendly
2012-09-19 7:11 ` David House
2012-09-19 7:36 ` Malcolm Matalka
2012-09-19 7:49 ` David House
2012-09-19 7:51 ` David House
2012-09-19 8:00 ` Malcolm Matalka
2012-09-19 8:11 ` Gabriel Scherer
2012-09-19 7:25 ` Jacques Garrigue
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=CAKziXDWWXFByJvT3iverWpPr6KmY-FSbr9-NBXzrAWYaubitpQ@mail.gmail.com \
--to=mmatalka@gmail.com \
--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