From: bob zhang <bobzhang1988@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: [Caml-list] Sharing the code between Monad and MonadState?
Date: Sat, 23 Jun 2012 10:32:22 -0400 [thread overview]
Message-ID: <CANcqPu6cQ5pPRggafbyyNkYNNarBb14amdaS=kA=SV_naz+vgw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
Hi List,
Given the syntax of first class module is improved a lot. I try to
encode Monad and MonadState, http://ideone.com/HgG4M
Unfortunately I found it's still impossible to share the code between
differrent Monad Instances. Is it theoretically impossible or I missed
something?
Many thanks
--
-- Bob
[-- Attachment #2: Type: text/html, Size: 425 bytes --]
next reply other threads:[~2012-06-23 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-23 14:32 bob zhang [this message]
2012-06-25 6:43 ` Arnaud Spiwack
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='CANcqPu6cQ5pPRggafbyyNkYNNarBb14amdaS=kA=SV_naz+vgw@mail.gmail.com' \
--to=bobzhang1988@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).