From: Goswin von Brederlow <goswin-v-b@web.de>
To: Gabriel Scherer <gabriel.scherer@gmail.com>
Cc: Goswin von Brederlow <goswin-v-b@web.de>, 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, 06 May 2012 12:39:38 +0200 [thread overview]
Message-ID: <87fwbdsidx.fsf@frosties.localnet> (raw)
In-Reply-To: <CAPFanBHSzVHGB7iQ+Wa_B2rcJix-ej8+yVsZwxott9PqC5t=fQ@mail.gmail.com> (Gabriel Scherer's message of "Sat, 5 May 2012 17:54:30 +0200")
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
next prev parent reply other threads:[~2012-05-06 10:39 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 [this message]
2012-05-06 10:58 ` Gabriel Scherer
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=87fwbdsidx.fsf@frosties.localnet \
--to=goswin-v-b@web.de \
--cc=caml-list@inria.fr \
--cc=gabriel.scherer@gmail.com \
/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