Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: forum@x9c.fr
Cc: caml-list users <caml-list@inria.fr>
Subject: Re: [Caml-list] Definition of module synonyms
Date: Fri, 18 Feb 2011 18:10:03 +0900	[thread overview]
Message-ID: <6C3CFF1F-DD4B-4BE3-BF3E-C78DCFE6200D@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <81B704C0-2971-47D8-BB9E-3F259016AB92@x9c.fr>

On 2011/02/18, at 17:30, forum@x9c.fr wrote:

> Dear list,
> 
> Following the goal of providing module synonyms (e. g. abbreviations for lazy
> developers), it seemed natural to do something along the following lines:
> 
> 	module M : sig
> 	  type t = A
> 	  val x : t
> 	end = struct
> 	  type t = A
> 	  let x = A
> 	end
> 	module S : sig
> 	  type t = M.t = A
> 	  include module type of M with type t := M.t
> 	end = M
> 
> However, this is rejected with the following message:
[...]

This was just a bug (or a misfeature) in 3.12.0.
This has been fixed long ago in the 3.12 branch, and will work in 3.12.1.

Jacques Garrigue

  reply	other threads:[~2011-02-18  9:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-18  8:30 forum
2011-02-18  9:10 ` Jacques Garrigue [this message]
2011-02-18  9:18   ` forum
2011-02-18 21:34   ` Norman Hardy

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=6C3CFF1F-DD4B-4BE3-BF3E-C78DCFE6200D@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=forum@x9c.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