caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Hezekiah M. Carty" <hez@0ok.org>
To: Dawid Toton <d0@wp.pl>
Cc: Caml <caml-list@inria.fr>
Subject: Re: [Caml-list] When functor yields many types - include a module with extra type equality?
Date: Tue, 3 Apr 2012 13:54:36 -0400	[thread overview]
Message-ID: <CAMfPyLCX5BsTp=VNQrfRFPrm41giMH3tCqE4oG9we-_9Z2SMwg@mail.gmail.com> (raw)
In-Reply-To: <4F7ADDAF.2030201@wp.pl>

On Tue, Apr 3, 2012 at 7:23 AM, Dawid Toton <d0@wp.pl> wrote:
<trimmed>
> module type S = sig
>  include (module type of S) (* 1 *)
>  val not_much_code : t
> end
<trimmed>
>
> How to do what I mark with (* 1 *) and (* 2 *) correctly? Would it help if I
> upgrade my toolchain from 3.11.2 to some more recent version?
> Dawid
>

You can do (* 1 *) as-written in OCaml 3.12.x although I don't think
the ( ) are necessary.

Hez

      parent reply	other threads:[~2012-04-03 17:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 11:23 Dawid Toton
2012-04-03 12:40 ` Gabriel Scherer
2012-04-03 17:54 ` Hezekiah M. Carty [this message]

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='CAMfPyLCX5BsTp=VNQrfRFPrm41giMH3tCqE4oG9we-_9Z2SMwg@mail.gmail.com' \
    --to=hez@0ok.org \
    --cc=caml-list@inria.fr \
    --cc=d0@wp.pl \
    /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;
as well as URLs for NNTP newsgroup(s).