From: Pietro Abate <Pietro.Abate@anu.edu.au>
To: ocaml ml <caml-list@inria.fr>
Subject: (old) camlp4 question
Date: Wed, 11 Apr 2007 20:59:49 +1000 [thread overview]
Message-ID: <20070411105949.GA7707@pulp.rsise.anu.edu.au> (raw)
Hi all,
I want to write a type like this in camlp4 :
type ('a,'b) b = [ `T of 'b ]
type a = ('b,int) b as 'b
Suppose I have a list of ctyp [<:ctyp< 'b >>;<:ctyp< int >>; ... ]
How can I write the type ('b,int) b as 'b ??
I've tried with <:ctyp< type a = b ($list:l$) as 'b >> but the result
is incorrect ... what is the right syntax ?
pietro
--
++ Blog: http://blog.rsise.anu.edu.au/?q=pietro
++
++ "All great truths begin as blasphemies." -George Bernard Shaw
++ Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
next reply other threads:[~2007-04-11 11:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-11 10:59 Pietro Abate [this message]
2007-04-11 11:43 ` [Caml-list] " Nicolas Pouillard
2007-04-12 1:20 ` Pietro Abate
2007-04-12 7:06 ` Nicolas Pouillard
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=20070411105949.GA7707@pulp.rsise.anu.edu.au \
--to=pietro.abate@anu.edu.au \
--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