caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Goswin von Brederlow <goswin-v-b@web.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How do I declare a value of 'a t instead of '_a t in a module?
Date: Sun, 6 May 2012 12:58:57 +0200	[thread overview]
Message-ID: <CAPFanBGzc4HLU8Xx_-cY58BpUxGtSDSu4750cJf=FodQtu51AA@mail.gmail.com> (raw)
In-Reply-To: <87fwbdsidx.fsf@frosties.localnet>

I agree this could be a good item in the FAQ. I have created an issue
on the bugtracker for this.
  http://caml.inria.fr/mantis/view.php?id=5607

Do not hesitate to comment on the bug: suggestions of wording are
warmly welcome.

On Sun, May 6, 2012 at 12:39 PM, Goswin von Brederlow <goswin-v-b@web.de> wrote:
> Gabriel Scherer <gabriel.scherer@gmail.com> writes:
>
>> You need to specify in the signature that ('a t) is contravariant:
>>   type +'a t
>
> Thanks, that was what I was looking for. Why can I never find this in
> the docs when I need it? :)
>
> MfG
>        Goswin


      reply	other threads:[~2012-05-06 10:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-05 15:37 Goswin von Brederlow
2012-05-05 15:54 ` Gabriel Scherer
2012-05-06 10:39   ` Goswin von Brederlow
2012-05-06 10:58     ` Gabriel Scherer [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='CAPFanBGzc4HLU8Xx_-cY58BpUxGtSDSu4750cJf=FodQtu51AA@mail.gmail.com' \
    --to=gabriel.scherer@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=goswin-v-b@web.de \
    /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).