From: Benjamin Greenman <blg59@cornell.edu>
Cc: OCaml mailing-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Locally abstract type with type parameters
Date: Thu, 21 Aug 2014 22:23:54 -0400 [thread overview]
Message-ID: <CAAtAoRrrmcj8gJ663AogXp3-t3moD42mUYdRR4RZ3Uzg_DS5vg@mail.gmail.com> (raw)
In-Reply-To: <21493.18720.441084.32472@gargle.gargle.HOWL>
[-- Attachment #1: Type: text/plain, Size: 395 bytes --]
I agree with the solution in the second link: if you want a certain
condition to hold on the parameter, it needs to be made explicit. As for
whether this restriction is necessary, I believe it is because I don't see
any way of deciding the question 'a Monad.t = 'a u without examining the
abstract type hidden in a particular Logger.
What if you made LOGGER a functor parameterized on a Monad?
[-- Attachment #2: Type: text/html, Size: 613 bytes --]
next prev parent reply other threads:[~2014-08-22 2:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 18:38 Dario Teixeira
2014-08-21 1:19 ` John F. Carr
2014-08-22 2:23 ` Benjamin Greenman [this message]
2014-08-24 16:39 ` Leo White
2014-08-26 14:33 ` Dario Teixeira
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=CAAtAoRrrmcj8gJ663AogXp3-t3moD42mUYdRR4RZ3Uzg_DS5vg@mail.gmail.com \
--to=blg59@cornell.edu \
--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